{"action":"created","comment":{"url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments/340514028","pull_request_review_id":309069809,"id":340514028,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0MDUxNDAyOA==","diff_hunk":"@@ -184,4 +188,24 @@ export class UsersApi {\n       url: `/pending_transactions/me/${txHash}`,\n     });\n   }\n+\n+  public async getGasStipend(txDetails: TxData): Promise<number> {\n+    const convertedTxDetails = {\n+      ...txDetails,\n+      gas: addHexPrefix(new BigNumber(txDetails.gas ? txDetails.gas.toString() : \"0\").toString(16)),\n+      gasPrice: addHexPrefix(\n+        new BigNumber(txDetails.gasPrice ? txDetails.gasPrice.toString() : \"0\").toString(16),\n+      ),\n+      value: addHexPrefix(\n+        new BigNumber(txDetails.value ? txDetails.value.toString() : \"0\").toString(16),\n+      ),\n+    };\n+    return (await this.httpClient.post<number>({\n+      baseUrl: USER_API_ROOT,\n+      url: `/transaction/gas_stipend`,\n+      body: { ...convertedTxDetails },","path":"packages/web/app/lib/api/users/UsersApi.ts","position":35,"original_position":35,"commit_id":"afdaff902ed285b8aa0adc8a23319b1398e45125","original_commit_id":"afdaff902ed285b8aa0adc8a23319b1398e45125","user":{"login":"Moejoe90","id":23242822,"node_id":"MDQ6VXNlcjIzMjQyODIy","avatar_url":"https://avatars2.githubusercontent.com/u/23242822?v=4","gravatar_id":"","url":"https://api.github.com/users/Moejoe90","html_url":"https://github.com/Moejoe90","followers_url":"https://api.github.com/users/Moejoe90/followers","following_url":"https://api.github.com/users/Moejoe90/following{/other_user}","gists_url":"https://api.github.com/users/Moejoe90/gists{/gist_id}","starred_url":"https://api.github.com/users/Moejoe90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moejoe90/subscriptions","organizations_url":"https://api.github.com/users/Moejoe90/orgs","repos_url":"https://api.github.com/users/Moejoe90/repos","events_url":"https://api.github.com/users/Moejoe90/events{/privacy}","received_events_url":"https://api.github.com/users/Moejoe90/received_events","type":"User","site_admin":false},"body":"good point, done","created_at":"2019-10-30T09:45:02Z","updated_at":"2019-10-30T09:45:02Z","html_url":"https://github.com/Neufund/platform-frontend/pull/3534#discussion_r340514028","pull_request_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments/340514028"},"html":{"href":"https://github.com/Neufund/platform-frontend/pull/3534#discussion_r340514028"},"pull_request":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534"}},"in_reply_to_id":340229034},"pull_request":{"url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534","id":321627839,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIxNjI3ODM5","html_url":"https://github.com/Neufund/platform-frontend/pull/3534","diff_url":"https://github.com/Neufund/platform-frontend/pull/3534.diff","patch_url":"https://github.com/Neufund/platform-frontend/pull/3534.patch","issue_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/3534","number":3534,"state":"open","locked":false,"title":"First steps into a gasless platform","user":{"login":"Moejoe90","id":23242822,"node_id":"MDQ6VXNlcjIzMjQyODIy","avatar_url":"https://avatars2.githubusercontent.com/u/23242822?v=4","gravatar_id":"","url":"https://api.github.com/users/Moejoe90","html_url":"https://github.com/Moejoe90","followers_url":"https://api.github.com/users/Moejoe90/followers","following_url":"https://api.github.com/users/Moejoe90/following{/other_user}","gists_url":"https://api.github.com/users/Moejoe90/gists{/gist_id}","starred_url":"https://api.github.com/users/Moejoe90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moejoe90/subscriptions","organizations_url":"https://api.github.com/users/Moejoe90/orgs","repos_url":"https://api.github.com/users/Moejoe90/repos","events_url":"https://api.github.com/users/Moejoe90/events{/privacy}","received_events_url":"https://api.github.com/users/Moejoe90/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-26T09:37:12Z","updated_at":"2019-10-30T09:45:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd9dcd1727c9ea7816c42ad84f9e140e0cb55954","assignee":{"login":"Moejoe90","id":23242822,"node_id":"MDQ6VXNlcjIzMjQyODIy","avatar_url":"https://avatars2.githubusercontent.com/u/23242822?v=4","gravatar_id":"","url":"https://api.github.com/users/Moejoe90","html_url":"https://github.com/Moejoe90","followers_url":"https://api.github.com/users/Moejoe90/followers","following_url":"https://api.github.com/users/Moejoe90/following{/other_user}","gists_url":"https://api.github.com/users/Moejoe90/gists{/gist_id}","starred_url":"https://api.github.com/users/Moejoe90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moejoe90/subscriptions","organizations_url":"https://api.github.com/users/Moejoe90/orgs","repos_url":"https://api.github.com/users/Moejoe90/repos","events_url":"https://api.github.com/users/Moejoe90/events{/privacy}","received_events_url":"https://api.github.com/users/Moejoe90/received_events","type":"User","site_admin":false},"assignees":[{"login":"Moejoe90","id":23242822,"node_id":"MDQ6VXNlcjIzMjQyODIy","avatar_url":"https://avatars2.githubusercontent.com/u/23242822?v=4","gravatar_id":"","url":"https://api.github.com/users/Moejoe90","html_url":"https://github.com/Moejoe90","followers_url":"https://api.github.com/users/Moejoe90/followers","following_url":"https://api.github.com/users/Moejoe90/following{/other_user}","gists_url":"https://api.github.com/users/Moejoe90/gists{/gist_id}","starred_url":"https://api.github.com/users/Moejoe90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moejoe90/subscriptions","organizations_url":"https://api.github.com/users/Moejoe90/orgs","repos_url":"https://api.github.com/users/Moejoe90/repos","events_url":"https://api.github.com/users/Moejoe90/events{/privacy}","received_events_url":"https://api.github.com/users/Moejoe90/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534/commits","review_comments_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534/comments","review_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/3534/comments","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/afdaff902ed285b8aa0adc8a23319b1398e45125","head":{"label":"Neufund:moe/gas-stipend","ref":"moe/gas-stipend","sha":"afdaff902ed285b8aa0adc8a23319b1398e45125","user":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"repo":{"id":116978635,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5Nzg2MzU=","name":"platform-frontend","full_name":"Neufund/platform-frontend","private":false,"owner":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Neufund/platform-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Neufund/platform-frontend","forks_url":"https://api.github.com/repos/Neufund/platform-frontend/forks","keys_url":"https://api.github.com/repos/Neufund/platform-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neufund/platform-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neufund/platform-frontend/teams","hooks_url":"https://api.github.com/repos/Neufund/platform-frontend/hooks","issue_events_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Neufund/platform-frontend/events","assignees_url":"https://api.github.com/repos/Neufund/platform-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Neufund/platform-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Neufund/platform-frontend/tags","blobs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neufund/platform-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neufund/platform-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Neufund/platform-frontend/languages","stargazers_url":"https://api.github.com/repos/Neufund/platform-frontend/stargazers","contributors_url":"https://api.github.com/repos/Neufund/platform-frontend/contributors","subscribers_url":"https://api.github.com/repos/Neufund/platform-frontend/subscribers","subscription_url":"https://api.github.com/repos/Neufund/platform-frontend/subscription","commits_url":"https://api.github.com/repos/Neufund/platform-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neufund/platform-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neufund/platform-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Neufund/platform-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neufund/platform-frontend/merges","archive_url":"https://api.github.com/repos/Neufund/platform-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neufund/platform-frontend/downloads","issues_url":"https://api.github.com/repos/Neufund/platform-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Neufund/platform-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Neufund/platform-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neufund/platform-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Neufund/platform-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Neufund/platform-frontend/deployments","created_at":"2018-01-10T15:57:08Z","updated_at":"2019-10-29T13:09:38Z","pushed_at":"2019-10-30T08:49:43Z","git_url":"git://github.com/Neufund/platform-frontend.git","ssh_url":"git@github.com:Neufund/platform-frontend.git","clone_url":"https://github.com/Neufund/platform-frontend.git","svn_url":"https://github.com/Neufund/platform-frontend","homepage":"https://platform.neufund.org/","size":123806,"stargazers_count":17,"watchers_count":17,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":203,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":203,"watchers":17,"default_branch":"master"}},"base":{"label":"Neufund:master","ref":"master","sha":"2c0264487127a151d733e31443f78117e636335e","user":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"repo":{"id":116978635,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5Nzg2MzU=","name":"platform-frontend","full_name":"Neufund/platform-frontend","private":false,"owner":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Neufund/platform-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Neufund/platform-frontend","forks_url":"https://api.github.com/repos/Neufund/platform-frontend/forks","keys_url":"https://api.github.com/repos/Neufund/platform-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neufund/platform-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neufund/platform-frontend/teams","hooks_url":"https://api.github.com/repos/Neufund/platform-frontend/hooks","issue_events_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Neufund/platform-frontend/events","assignees_url":"https://api.github.com/repos/Neufund/platform-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Neufund/platform-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Neufund/platform-frontend/tags","blobs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neufund/platform-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neufund/platform-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Neufund/platform-frontend/languages","stargazers_url":"https://api.github.com/repos/Neufund/platform-frontend/stargazers","contributors_url":"https://api.github.com/repos/Neufund/platform-frontend/contributors","subscribers_url":"https://api.github.com/repos/Neufund/platform-frontend/subscribers","subscription_url":"https://api.github.com/repos/Neufund/platform-frontend/subscription","commits_url":"https://api.github.com/repos/Neufund/platform-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neufund/platform-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neufund/platform-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Neufund/platform-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neufund/platform-frontend/merges","archive_url":"https://api.github.com/repos/Neufund/platform-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neufund/platform-frontend/downloads","issues_url":"https://api.github.com/repos/Neufund/platform-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Neufund/platform-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Neufund/platform-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neufund/platform-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Neufund/platform-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Neufund/platform-frontend/deployments","created_at":"2018-01-10T15:57:08Z","updated_at":"2019-10-29T13:09:38Z","pushed_at":"2019-10-30T08:49:43Z","git_url":"git://github.com/Neufund/platform-frontend.git","ssh_url":"git@github.com:Neufund/platform-frontend.git","clone_url":"https://github.com/Neufund/platform-frontend.git","svn_url":"https://github.com/Neufund/platform-frontend","homepage":"https://platform.neufund.org/","size":123806,"stargazers_count":17,"watchers_count":17,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":203,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":203,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534"},"html":{"href":"https://github.com/Neufund/platform-frontend/pull/3534"},"issue":{"href":"https://api.github.com/repos/Neufund/platform-frontend/issues/3534"},"comments":{"href":"https://api.github.com/repos/Neufund/platform-frontend/issues/3534/comments"},"review_comments":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534/comments"},"review_comment":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3534/commits"},"statuses":{"href":"https://api.github.com/repos/Neufund/platform-frontend/statuses/afdaff902ed285b8aa0adc8a23319b1398e45125"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Moejoe90"}}