{"action":"created","comment":{"url":"https://api.github.com/repos/magmo/rps-poc/pulls/comments/237225869","pull_request_review_id":179473520,"id":237225869,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzIyNTg2OQ==","diff_hunk":"@@ -0,0 +1,127 @@\n+import { walletReducer } from '..';\n+\n+import * as states from '../../../states';\n+import * as actions from '../../actions';\n+\n+import { itTransitionsToStateType, itSendsATransaction } from './helpers';\n+import { scenarios } from '../../../../core';\n+import { ChallengeProof } from 'src/wallet/domain/ChallengeProof';\n+const {\n+    asPrivateKey,\n+    revealHex,\n+    acceptHex,\n+    acceptSig,\n+    proposeHex,\n+    proposeSig,\n+    participants,\n+    channelId,\n+    channelNonce,\n+    libraryAddress,\n+} = scenarios.standard;\n+\n+const defaults = {\n+    uid: 'uid',\n+    participants,\n+    libraryAddress,\n+    channelId,\n+    channelNonce,\n+    lastPosition: revealHex,\n+    penultimatePosition: acceptHex,\n+    turnNum: 6,\n+    adjudicator: 'adj-address',\n+    ourIndex: 0,\n+    address: 'address',\n+    privateKey: asPrivateKey,\n+    challengeProof: new ChallengeProof(proposeHex, acceptHex, proposeSig, acceptSig),\n+\n+};\n+\n+\n+describe('when in APPROVE_CHALLENGE', () => {\n+    const state = states.approveChallenge({ ...defaults });\n+    describe('when a challenge is approved', () => {\n+        const action = actions.approveChallenge();\n+        const updatedState = walletReducer(state, action);\n+        itTransitionsToStateType(states.INITIATE_CHALLENGE, updatedState);\n+        itSendsATransaction(updatedState);","path":"src/wallet/redux/reducers/__tests__/challenging.test.ts","position":46,"original_position":46,"commit_id":"3fc4e7ed41496baedf5b46080ba6e965956b9ca9","original_commit_id":"7d5142b708d5d318a2a5e88dca1c0422c93a414b","user":{"login":"tomclose","id":29596,"node_id":"MDQ6VXNlcjI5NTk2","avatar_url":"https://avatars0.githubusercontent.com/u/29596?v=4","gravatar_id":"","url":"https://api.github.com/users/tomclose","html_url":"https://github.com/tomclose","followers_url":"https://api.github.com/users/tomclose/followers","following_url":"https://api.github.com/users/tomclose/following{/other_user}","gists_url":"https://api.github.com/users/tomclose/gists{/gist_id}","starred_url":"https://api.github.com/users/tomclose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomclose/subscriptions","organizations_url":"https://api.github.com/users/tomclose/orgs","repos_url":"https://api.github.com/users/tomclose/repos","events_url":"https://api.github.com/users/tomclose/events{/privacy}","received_events_url":"https://api.github.com/users/tomclose/received_events","type":"User","site_admin":false},"body":"How do I run auto-format?","created_at":"2018-11-28T19:22:25Z","updated_at":"2018-11-28T19:22:25Z","html_url":"https://github.com/magmo/rps-poc/pull/314#discussion_r237225869","pull_request_url":"https://api.github.com/repos/magmo/rps-poc/pulls/314","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/comments/237225869"},"html":{"href":"https://github.com/magmo/rps-poc/pull/314#discussion_r237225869"},"pull_request":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/314"}},"in_reply_to_id":237200690},"pull_request":{"url":"https://api.github.com/repos/magmo/rps-poc/pulls/314","id":234371791,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MzcxNzkx","html_url":"https://github.com/magmo/rps-poc/pull/314","diff_url":"https://github.com/magmo/rps-poc/pull/314.diff","patch_url":"https://github.com/magmo/rps-poc/pull/314.patch","issue_url":"https://api.github.com/repos/magmo/rps-poc/issues/314","number":314,"state":"open","locked":false,"title":"Wallet Challenging and Responding Refactor/Scaffolding","user":{"login":"lalexgap","id":1620336,"node_id":"MDQ6VXNlcjE2MjAzMzY=","avatar_url":"https://avatars1.githubusercontent.com/u/1620336?v=4","gravatar_id":"","url":"https://api.github.com/users/lalexgap","html_url":"https://github.com/lalexgap","followers_url":"https://api.github.com/users/lalexgap/followers","following_url":"https://api.github.com/users/lalexgap/following{/other_user}","gists_url":"https://api.github.com/users/lalexgap/gists{/gist_id}","starred_url":"https://api.github.com/users/lalexgap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalexgap/subscriptions","organizations_url":"https://api.github.com/users/lalexgap/orgs","repos_url":"https://api.github.com/users/lalexgap/repos","events_url":"https://api.github.com/users/lalexgap/events{/privacy}","received_events_url":"https://api.github.com/users/lalexgap/received_events","type":"User","site_admin":false},"body":"Scaffold out the states and actions for challenging and responding. There's still some work to do to properly handle submitted the challenge that will be tackled as part of #311 .  Addresses #300 #302. ","created_at":"2018-11-28T17:57:42Z","updated_at":"2018-11-28T19:22:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f51622dd117a06ae8103ea53642e07cf7d52e1c1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/magmo/rps-poc/pulls/314/commits","review_comments_url":"https://api.github.com/repos/magmo/rps-poc/pulls/314/comments","review_comment_url":"https://api.github.com/repos/magmo/rps-poc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magmo/rps-poc/issues/314/comments","statuses_url":"https://api.github.com/repos/magmo/rps-poc/statuses/3fc4e7ed41496baedf5b46080ba6e965956b9ca9","head":{"label":"magmo:ag-challenging-wallet","ref":"ag-challenging-wallet","sha":"3fc4e7ed41496baedf5b46080ba6e965956b9ca9","user":{"login":"magmo","id":36650395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjUwMzk1","avatar_url":"https://avatars2.githubusercontent.com/u/36650395?v=4","gravatar_id":"","url":"https://api.github.com/users/magmo","html_url":"https://github.com/magmo","followers_url":"https://api.github.com/users/magmo/followers","following_url":"https://api.github.com/users/magmo/following{/other_user}","gists_url":"https://api.github.com/users/magmo/gists{/gist_id}","starred_url":"https://api.github.com/users/magmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magmo/subscriptions","organizations_url":"https://api.github.com/users/magmo/orgs","repos_url":"https://api.github.com/users/magmo/repos","events_url":"https://api.github.com/users/magmo/events{/privacy}","received_events_url":"https://api.github.com/users/magmo/received_events","type":"Organization","site_admin":false},"repo":{"id":132977258,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI5NzcyNTg=","name":"rps-poc","full_name":"magmo/rps-poc","private":false,"owner":{"login":"magmo","id":36650395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjUwMzk1","avatar_url":"https://avatars2.githubusercontent.com/u/36650395?v=4","gravatar_id":"","url":"https://api.github.com/users/magmo","html_url":"https://github.com/magmo","followers_url":"https://api.github.com/users/magmo/followers","following_url":"https://api.github.com/users/magmo/following{/other_user}","gists_url":"https://api.github.com/users/magmo/gists{/gist_id}","starred_url":"https://api.github.com/users/magmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magmo/subscriptions","organizations_url":"https://api.github.com/users/magmo/orgs","repos_url":"https://api.github.com/users/magmo/repos","events_url":"https://api.github.com/users/magmo/events{/privacy}","received_events_url":"https://api.github.com/users/magmo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/magmo/rps-poc","description":"Rock, Paper, Scissors: A proof-of-concept force-move game","fork":false,"url":"https://api.github.com/repos/magmo/rps-poc","forks_url":"https://api.github.com/repos/magmo/rps-poc/forks","keys_url":"https://api.github.com/repos/magmo/rps-poc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magmo/rps-poc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magmo/rps-poc/teams","hooks_url":"https://api.github.com/repos/magmo/rps-poc/hooks","issue_events_url":"https://api.github.com/repos/magmo/rps-poc/issues/events{/number}","events_url":"https://api.github.com/repos/magmo/rps-poc/events","assignees_url":"https://api.github.com/repos/magmo/rps-poc/assignees{/user}","branches_url":"https://api.github.com/repos/magmo/rps-poc/branches{/branch}","tags_url":"https://api.github.com/repos/magmo/rps-poc/tags","blobs_url":"https://api.github.com/repos/magmo/rps-poc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magmo/rps-poc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magmo/rps-poc/git/refs{/sha}","trees_url":"https://api.github.com/repos/magmo/rps-poc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magmo/rps-poc/statuses/{sha}","languages_url":"https://api.github.com/repos/magmo/rps-poc/languages","stargazers_url":"https://api.github.com/repos/magmo/rps-poc/stargazers","contributors_url":"https://api.github.com/repos/magmo/rps-poc/contributors","subscribers_url":"https://api.github.com/repos/magmo/rps-poc/subscribers","subscription_url":"https://api.github.com/repos/magmo/rps-poc/subscription","commits_url":"https://api.github.com/repos/magmo/rps-poc/commits{/sha}","git_commits_url":"https://api.github.com/repos/magmo/rps-poc/git/commits{/sha}","comments_url":"https://api.github.com/repos/magmo/rps-poc/comments{/number}","issue_comment_url":"https://api.github.com/repos/magmo/rps-poc/issues/comments{/number}","contents_url":"https://api.github.com/repos/magmo/rps-poc/contents/{+path}","compare_url":"https://api.github.com/repos/magmo/rps-poc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magmo/rps-poc/merges","archive_url":"https://api.github.com/repos/magmo/rps-poc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magmo/rps-poc/downloads","issues_url":"https://api.github.com/repos/magmo/rps-poc/issues{/number}","pulls_url":"https://api.github.com/repos/magmo/rps-poc/pulls{/number}","milestones_url":"https://api.github.com/repos/magmo/rps-poc/milestones{/number}","notifications_url":"https://api.github.com/repos/magmo/rps-poc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magmo/rps-poc/labels{/name}","releases_url":"https://api.github.com/repos/magmo/rps-poc/releases{/id}","deployments_url":"https://api.github.com/repos/magmo/rps-poc/deployments","created_at":"2018-05-11T02:13:23Z","updated_at":"2018-11-26T19:57:37Z","pushed_at":"2018-11-28T19:17:45Z","git_url":"git://github.com/magmo/rps-poc.git","ssh_url":"git@github.com:magmo/rps-poc.git","clone_url":"https://github.com/magmo/rps-poc.git","svn_url":"https://github.com/magmo/rps-poc","homepage":"","size":4760,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"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":2,"open_issues":14,"watchers":7,"default_branch":"master"}},"base":{"label":"magmo:wallet","ref":"wallet","sha":"d6cca8a107c9647ce15bc77f1f359950926e0485","user":{"login":"magmo","id":36650395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjUwMzk1","avatar_url":"https://avatars2.githubusercontent.com/u/36650395?v=4","gravatar_id":"","url":"https://api.github.com/users/magmo","html_url":"https://github.com/magmo","followers_url":"https://api.github.com/users/magmo/followers","following_url":"https://api.github.com/users/magmo/following{/other_user}","gists_url":"https://api.github.com/users/magmo/gists{/gist_id}","starred_url":"https://api.github.com/users/magmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magmo/subscriptions","organizations_url":"https://api.github.com/users/magmo/orgs","repos_url":"https://api.github.com/users/magmo/repos","events_url":"https://api.github.com/users/magmo/events{/privacy}","received_events_url":"https://api.github.com/users/magmo/received_events","type":"Organization","site_admin":false},"repo":{"id":132977258,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI5NzcyNTg=","name":"rps-poc","full_name":"magmo/rps-poc","private":false,"owner":{"login":"magmo","id":36650395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjUwMzk1","avatar_url":"https://avatars2.githubusercontent.com/u/36650395?v=4","gravatar_id":"","url":"https://api.github.com/users/magmo","html_url":"https://github.com/magmo","followers_url":"https://api.github.com/users/magmo/followers","following_url":"https://api.github.com/users/magmo/following{/other_user}","gists_url":"https://api.github.com/users/magmo/gists{/gist_id}","starred_url":"https://api.github.com/users/magmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magmo/subscriptions","organizations_url":"https://api.github.com/users/magmo/orgs","repos_url":"https://api.github.com/users/magmo/repos","events_url":"https://api.github.com/users/magmo/events{/privacy}","received_events_url":"https://api.github.com/users/magmo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/magmo/rps-poc","description":"Rock, Paper, Scissors: A proof-of-concept force-move game","fork":false,"url":"https://api.github.com/repos/magmo/rps-poc","forks_url":"https://api.github.com/repos/magmo/rps-poc/forks","keys_url":"https://api.github.com/repos/magmo/rps-poc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magmo/rps-poc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magmo/rps-poc/teams","hooks_url":"https://api.github.com/repos/magmo/rps-poc/hooks","issue_events_url":"https://api.github.com/repos/magmo/rps-poc/issues/events{/number}","events_url":"https://api.github.com/repos/magmo/rps-poc/events","assignees_url":"https://api.github.com/repos/magmo/rps-poc/assignees{/user}","branches_url":"https://api.github.com/repos/magmo/rps-poc/branches{/branch}","tags_url":"https://api.github.com/repos/magmo/rps-poc/tags","blobs_url":"https://api.github.com/repos/magmo/rps-poc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magmo/rps-poc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magmo/rps-poc/git/refs{/sha}","trees_url":"https://api.github.com/repos/magmo/rps-poc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magmo/rps-poc/statuses/{sha}","languages_url":"https://api.github.com/repos/magmo/rps-poc/languages","stargazers_url":"https://api.github.com/repos/magmo/rps-poc/stargazers","contributors_url":"https://api.github.com/repos/magmo/rps-poc/contributors","subscribers_url":"https://api.github.com/repos/magmo/rps-poc/subscribers","subscription_url":"https://api.github.com/repos/magmo/rps-poc/subscription","commits_url":"https://api.github.com/repos/magmo/rps-poc/commits{/sha}","git_commits_url":"https://api.github.com/repos/magmo/rps-poc/git/commits{/sha}","comments_url":"https://api.github.com/repos/magmo/rps-poc/comments{/number}","issue_comment_url":"https://api.github.com/repos/magmo/rps-poc/issues/comments{/number}","contents_url":"https://api.github.com/repos/magmo/rps-poc/contents/{+path}","compare_url":"https://api.github.com/repos/magmo/rps-poc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magmo/rps-poc/merges","archive_url":"https://api.github.com/repos/magmo/rps-poc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magmo/rps-poc/downloads","issues_url":"https://api.github.com/repos/magmo/rps-poc/issues{/number}","pulls_url":"https://api.github.com/repos/magmo/rps-poc/pulls{/number}","milestones_url":"https://api.github.com/repos/magmo/rps-poc/milestones{/number}","notifications_url":"https://api.github.com/repos/magmo/rps-poc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magmo/rps-poc/labels{/name}","releases_url":"https://api.github.com/repos/magmo/rps-poc/releases{/id}","deployments_url":"https://api.github.com/repos/magmo/rps-poc/deployments","created_at":"2018-05-11T02:13:23Z","updated_at":"2018-11-26T19:57:37Z","pushed_at":"2018-11-28T19:17:45Z","git_url":"git://github.com/magmo/rps-poc.git","ssh_url":"git@github.com:magmo/rps-poc.git","clone_url":"https://github.com/magmo/rps-poc.git","svn_url":"https://github.com/magmo/rps-poc","homepage":"","size":4760,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"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":2,"open_issues":14,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/314"},"html":{"href":"https://github.com/magmo/rps-poc/pull/314"},"issue":{"href":"https://api.github.com/repos/magmo/rps-poc/issues/314"},"comments":{"href":"https://api.github.com/repos/magmo/rps-poc/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magmo/rps-poc/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/magmo/rps-poc/statuses/3fc4e7ed41496baedf5b46080ba6e965956b9ca9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tomclose"}}