{"action":"created","comment":{"url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/comments/211104804","pull_request_review_id":147460705,"id":211104804,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTEwNDgwNA==","diff_hunk":"@@ -212,4 +212,81 @@ export class Payment {\n     const params = [ 'paymentrequest', networkAddress, this._user.address, amount, subject ]\n     return this._utils.createLink(params)\n   }\n+\n+  /**\n+   * Retrieve total spendable amount of user in currency network\n+   *\n+   * @param networkAddress\n+   *\n+   * @return {Promise<{amount: Amount}>}\n+   */\n+  public async getMaxAmount (\n+    networkAddress: string\n+  ): Promise<any> {\n+    const decimals = await this._currencyNetwork.getDecimals(networkAddress)\n+    const userAddress = this._user.address\n+    const endpoint = `networks/${networkAddress}/users/${userAddress}/spendable`","path":"src/Payment.ts","position":null,"original_position":30,"commit_id":"7b4ca9df320dbe2b4cac5852ffb24fefa622213e","original_commit_id":"99087c2765f630484be0947b3546cea98170c9d9","user":{"login":"berndbohmeier","id":5587237,"node_id":"MDQ6VXNlcjU1ODcyMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/5587237?v=4","gravatar_id":"","url":"https://api.github.com/users/berndbohmeier","html_url":"https://github.com/berndbohmeier","followers_url":"https://api.github.com/users/berndbohmeier/followers","following_url":"https://api.github.com/users/berndbohmeier/following{/other_user}","gists_url":"https://api.github.com/users/berndbohmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/berndbohmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndbohmeier/subscriptions","organizations_url":"https://api.github.com/users/berndbohmeier/orgs","repos_url":"https://api.github.com/users/berndbohmeier/repos","events_url":"https://api.github.com/users/berndbohmeier/events{/privacy}","received_events_url":"https://api.github.com/users/berndbohmeier/received_events","type":"User","site_admin":false},"body":"I opened an issue. The docs are up to date with the source code.. But not with the project. ","created_at":"2018-08-19T14:26:17Z","updated_at":"2018-08-19T14:26:17Z","html_url":"https://github.com/trustlines-network/clientlib/pull/133#discussion_r211104804","pull_request_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/comments/211104804"},"html":{"href":"https://github.com/trustlines-network/clientlib/pull/133#discussion_r211104804"},"pull_request":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133"}},"in_reply_to_id":211075654},"pull_request":{"url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133","id":209309630,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzA5NjMw","html_url":"https://github.com/trustlines-network/clientlib/pull/133","diff_url":"https://github.com/trustlines-network/clientlib/pull/133.diff","patch_url":"https://github.com/trustlines-network/clientlib/pull/133.patch","issue_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/133","number":133,"state":"open","locked":false,"title":"max transferable amount","user":{"login":"jensneuber","id":482851,"node_id":"MDQ6VXNlcjQ4Mjg1MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/482851?v=4","gravatar_id":"","url":"https://api.github.com/users/jensneuber","html_url":"https://github.com/jensneuber","followers_url":"https://api.github.com/users/jensneuber/followers","following_url":"https://api.github.com/users/jensneuber/following{/other_user}","gists_url":"https://api.github.com/users/jensneuber/gists{/gist_id}","starred_url":"https://api.github.com/users/jensneuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensneuber/subscriptions","organizations_url":"https://api.github.com/users/jensneuber/orgs","repos_url":"https://api.github.com/users/jensneuber/repos","events_url":"https://api.github.com/users/jensneuber/events{/privacy}","received_events_url":"https://api.github.com/users/jensneuber/received_events","type":"User","site_admin":false},"body":"adds methods to get max transferable amount of \r\n- adjacent \r\nand \r\n- non-adjacent users\r\n\r\nhttps://github.com/trustlines-network/project/issues/161","created_at":"2018-08-18T12:19:28Z","updated_at":"2018-08-19T14:26:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c4d2bb596aa788ab8505f35fcacc6e06b9f9ed5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dakingha69","id":17645687,"node_id":"MDQ6VXNlcjE3NjQ1Njg3","avatar_url":"https://avatars0.githubusercontent.com/u/17645687?v=4","gravatar_id":"","url":"https://api.github.com/users/dakingha69","html_url":"https://github.com/dakingha69","followers_url":"https://api.github.com/users/dakingha69/followers","following_url":"https://api.github.com/users/dakingha69/following{/other_user}","gists_url":"https://api.github.com/users/dakingha69/gists{/gist_id}","starred_url":"https://api.github.com/users/dakingha69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakingha69/subscriptions","organizations_url":"https://api.github.com/users/dakingha69/orgs","repos_url":"https://api.github.com/users/dakingha69/repos","events_url":"https://api.github.com/users/dakingha69/events{/privacy}","received_events_url":"https://api.github.com/users/dakingha69/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133/commits","review_comments_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133/comments","review_comment_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/133/comments","statuses_url":"https://api.github.com/repos/trustlines-network/clientlib/statuses/7b4ca9df320dbe2b4cac5852ffb24fefa622213e","head":{"label":"trustlines-network:feature/max-transferabel-amount","ref":"feature/max-transferabel-amount","sha":"7b4ca9df320dbe2b4cac5852ffb24fefa622213e","user":{"login":"trustlines-network","id":23054928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU0OTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23054928?v=4","gravatar_id":"","url":"https://api.github.com/users/trustlines-network","html_url":"https://github.com/trustlines-network","followers_url":"https://api.github.com/users/trustlines-network/followers","following_url":"https://api.github.com/users/trustlines-network/following{/other_user}","gists_url":"https://api.github.com/users/trustlines-network/gists{/gist_id}","starred_url":"https://api.github.com/users/trustlines-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustlines-network/subscriptions","organizations_url":"https://api.github.com/users/trustlines-network/orgs","repos_url":"https://api.github.com/users/trustlines-network/repos","events_url":"https://api.github.com/users/trustlines-network/events{/privacy}","received_events_url":"https://api.github.com/users/trustlines-network/received_events","type":"Organization","site_admin":false},"repo":{"id":94525680,"node_id":"MDEwOlJlcG9zaXRvcnk5NDUyNTY4MA==","name":"clientlib","full_name":"trustlines-network/clientlib","owner":{"login":"trustlines-network","id":23054928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU0OTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23054928?v=4","gravatar_id":"","url":"https://api.github.com/users/trustlines-network","html_url":"https://github.com/trustlines-network","followers_url":"https://api.github.com/users/trustlines-network/followers","following_url":"https://api.github.com/users/trustlines-network/following{/other_user}","gists_url":"https://api.github.com/users/trustlines-network/gists{/gist_id}","starred_url":"https://api.github.com/users/trustlines-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustlines-network/subscriptions","organizations_url":"https://api.github.com/users/trustlines-network/orgs","repos_url":"https://api.github.com/users/trustlines-network/repos","events_url":"https://api.github.com/users/trustlines-network/events{/privacy}","received_events_url":"https://api.github.com/users/trustlines-network/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trustlines-network/clientlib","description":null,"fork":false,"url":"https://api.github.com/repos/trustlines-network/clientlib","forks_url":"https://api.github.com/repos/trustlines-network/clientlib/forks","keys_url":"https://api.github.com/repos/trustlines-network/clientlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trustlines-network/clientlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trustlines-network/clientlib/teams","hooks_url":"https://api.github.com/repos/trustlines-network/clientlib/hooks","issue_events_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/events{/number}","events_url":"https://api.github.com/repos/trustlines-network/clientlib/events","assignees_url":"https://api.github.com/repos/trustlines-network/clientlib/assignees{/user}","branches_url":"https://api.github.com/repos/trustlines-network/clientlib/branches{/branch}","tags_url":"https://api.github.com/repos/trustlines-network/clientlib/tags","blobs_url":"https://api.github.com/repos/trustlines-network/clientlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trustlines-network/clientlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trustlines-network/clientlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/trustlines-network/clientlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trustlines-network/clientlib/statuses/{sha}","languages_url":"https://api.github.com/repos/trustlines-network/clientlib/languages","stargazers_url":"https://api.github.com/repos/trustlines-network/clientlib/stargazers","contributors_url":"https://api.github.com/repos/trustlines-network/clientlib/contributors","subscribers_url":"https://api.github.com/repos/trustlines-network/clientlib/subscribers","subscription_url":"https://api.github.com/repos/trustlines-network/clientlib/subscription","commits_url":"https://api.github.com/repos/trustlines-network/clientlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/trustlines-network/clientlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/trustlines-network/clientlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/trustlines-network/clientlib/contents/{+path}","compare_url":"https://api.github.com/repos/trustlines-network/clientlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trustlines-network/clientlib/merges","archive_url":"https://api.github.com/repos/trustlines-network/clientlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trustlines-network/clientlib/downloads","issues_url":"https://api.github.com/repos/trustlines-network/clientlib/issues{/number}","pulls_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls{/number}","milestones_url":"https://api.github.com/repos/trustlines-network/clientlib/milestones{/number}","notifications_url":"https://api.github.com/repos/trustlines-network/clientlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trustlines-network/clientlib/labels{/name}","releases_url":"https://api.github.com/repos/trustlines-network/clientlib/releases{/id}","deployments_url":"https://api.github.com/repos/trustlines-network/clientlib/deployments","created_at":"2017-06-16T08:58:44Z","updated_at":"2018-08-17T10:17:19Z","pushed_at":"2018-08-19T09:19:42Z","git_url":"git://github.com/trustlines-network/clientlib.git","ssh_url":"git@github.com:trustlines-network/clientlib.git","clone_url":"https://github.com/trustlines-network/clientlib.git","svn_url":"https://github.com/trustlines-network/clientlib","homepage":null,"size":1231,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","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":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":14,"watchers":6,"default_branch":"develop"}},"base":{"label":"trustlines-network:develop","ref":"develop","sha":"d1e6622b5834944fe23bf6b07afd93c57ef5cbad","user":{"login":"trustlines-network","id":23054928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU0OTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23054928?v=4","gravatar_id":"","url":"https://api.github.com/users/trustlines-network","html_url":"https://github.com/trustlines-network","followers_url":"https://api.github.com/users/trustlines-network/followers","following_url":"https://api.github.com/users/trustlines-network/following{/other_user}","gists_url":"https://api.github.com/users/trustlines-network/gists{/gist_id}","starred_url":"https://api.github.com/users/trustlines-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustlines-network/subscriptions","organizations_url":"https://api.github.com/users/trustlines-network/orgs","repos_url":"https://api.github.com/users/trustlines-network/repos","events_url":"https://api.github.com/users/trustlines-network/events{/privacy}","received_events_url":"https://api.github.com/users/trustlines-network/received_events","type":"Organization","site_admin":false},"repo":{"id":94525680,"node_id":"MDEwOlJlcG9zaXRvcnk5NDUyNTY4MA==","name":"clientlib","full_name":"trustlines-network/clientlib","owner":{"login":"trustlines-network","id":23054928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU0OTI4","avatar_url":"https://avatars2.githubusercontent.com/u/23054928?v=4","gravatar_id":"","url":"https://api.github.com/users/trustlines-network","html_url":"https://github.com/trustlines-network","followers_url":"https://api.github.com/users/trustlines-network/followers","following_url":"https://api.github.com/users/trustlines-network/following{/other_user}","gists_url":"https://api.github.com/users/trustlines-network/gists{/gist_id}","starred_url":"https://api.github.com/users/trustlines-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustlines-network/subscriptions","organizations_url":"https://api.github.com/users/trustlines-network/orgs","repos_url":"https://api.github.com/users/trustlines-network/repos","events_url":"https://api.github.com/users/trustlines-network/events{/privacy}","received_events_url":"https://api.github.com/users/trustlines-network/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trustlines-network/clientlib","description":null,"fork":false,"url":"https://api.github.com/repos/trustlines-network/clientlib","forks_url":"https://api.github.com/repos/trustlines-network/clientlib/forks","keys_url":"https://api.github.com/repos/trustlines-network/clientlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trustlines-network/clientlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trustlines-network/clientlib/teams","hooks_url":"https://api.github.com/repos/trustlines-network/clientlib/hooks","issue_events_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/events{/number}","events_url":"https://api.github.com/repos/trustlines-network/clientlib/events","assignees_url":"https://api.github.com/repos/trustlines-network/clientlib/assignees{/user}","branches_url":"https://api.github.com/repos/trustlines-network/clientlib/branches{/branch}","tags_url":"https://api.github.com/repos/trustlines-network/clientlib/tags","blobs_url":"https://api.github.com/repos/trustlines-network/clientlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trustlines-network/clientlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trustlines-network/clientlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/trustlines-network/clientlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trustlines-network/clientlib/statuses/{sha}","languages_url":"https://api.github.com/repos/trustlines-network/clientlib/languages","stargazers_url":"https://api.github.com/repos/trustlines-network/clientlib/stargazers","contributors_url":"https://api.github.com/repos/trustlines-network/clientlib/contributors","subscribers_url":"https://api.github.com/repos/trustlines-network/clientlib/subscribers","subscription_url":"https://api.github.com/repos/trustlines-network/clientlib/subscription","commits_url":"https://api.github.com/repos/trustlines-network/clientlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/trustlines-network/clientlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/trustlines-network/clientlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/trustlines-network/clientlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/trustlines-network/clientlib/contents/{+path}","compare_url":"https://api.github.com/repos/trustlines-network/clientlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trustlines-network/clientlib/merges","archive_url":"https://api.github.com/repos/trustlines-network/clientlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trustlines-network/clientlib/downloads","issues_url":"https://api.github.com/repos/trustlines-network/clientlib/issues{/number}","pulls_url":"https://api.github.com/repos/trustlines-network/clientlib/pulls{/number}","milestones_url":"https://api.github.com/repos/trustlines-network/clientlib/milestones{/number}","notifications_url":"https://api.github.com/repos/trustlines-network/clientlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trustlines-network/clientlib/labels{/name}","releases_url":"https://api.github.com/repos/trustlines-network/clientlib/releases{/id}","deployments_url":"https://api.github.com/repos/trustlines-network/clientlib/deployments","created_at":"2017-06-16T08:58:44Z","updated_at":"2018-08-17T10:17:19Z","pushed_at":"2018-08-19T09:19:42Z","git_url":"git://github.com/trustlines-network/clientlib.git","ssh_url":"git@github.com:trustlines-network/clientlib.git","clone_url":"https://github.com/trustlines-network/clientlib.git","svn_url":"https://github.com/trustlines-network/clientlib","homepage":null,"size":1231,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","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":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":14,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133"},"html":{"href":"https://github.com/trustlines-network/clientlib/pull/133"},"issue":{"href":"https://api.github.com/repos/trustlines-network/clientlib/issues/133"},"comments":{"href":"https://api.github.com/repos/trustlines-network/clientlib/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trustlines-network/clientlib/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/trustlines-network/clientlib/statuses/7b4ca9df320dbe2b4cac5852ffb24fefa622213e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"berndbohmeier"}}