{"action":"created","comment":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/comments/93504308","pull_request_review_id":14033678,"id":93504308,"diff_hunk":"@@ -175,3 +177,32 @@ type Sales interface {\n \t// Return the IDs for all orders\n \tGetAll() ([]string, error)\n }\n+\n+type Cases interface {\n+\t// Save a new case\n+\tPut(caseID string, state pb.OrderState, buyerOpened bool, claim string) error\n+\n+\t// Update a case with the buyer info\n+\tUpdateBuyerInfo(caseID string, buyerContract *pb.RicardianContract, buyerValidationErrors []string, buyerPayoutAddress string, buyerOutpoints []*pb.Outpoint) error\n+\n+\t// Update a case with the vendor info\n+\tUpdateVendorInfo(caseID string, vendorContract *pb.RicardianContract, vendorValidationErrors []string, vendorPayoutAddress string, vendorOutpoints []*pb.Outpoint) error\n+\n+\t// Mark a case as read in the database\n+\tMarkAsRead(caseID string) error\n+\n+\t// Mark a case as closed in the database\n+\tMarkAsClosed(caseID string, resolution *pb.DisputeResolution) error\n+\n+\t// Delete a case\n+\tDelete(caseID string) error\n+\n+\t// Return the case metadata given a case ID\n+\tGetCaseMetadata(caseID string) (buyerContract, vendorContract *pb.RicardianContract, buyerValidationErrors, vendorValidationErrors []string, state pb.OrderState, read bool, timestamp time.Time, buyerOpened bool, claim string, resolution *pb.DisputeResolution, err error)\n+\n+\t// Return the dispute payout data for a case\n+\tGetPayoutDetails(caseID string) (buyerContract, vendorContract *pb.RicardianContract, buyerPayoutAddress, vendorPayoutAddress string, buyerOutpoints, vendorOutpoints []*pb.Outpoint, state pb.OrderState, err error)","path":"repo/datastore.go","position":44,"original_position":44,"commit_id":"bc2035005261f07b6fbc2cb5203d2c372ef1f68d","original_commit_id":"bc2035005261f07b6fbc2cb5203d2c372ef1f68d","user":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"body":"I'll look into narrowing down the arguments after merge. I'll open an issue for it.","created_at":"2016-12-21T19:32:31Z","updated_at":"2016-12-21T19:32:31Z","html_url":"https://github.com/OpenBazaar/openbazaar-go/pull/180#discussion_r93504308","pull_request_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/comments/93504308"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-go/pull/180#discussion_r93504308"},"pull_request":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180","id":91400916,"html_url":"https://github.com/OpenBazaar/openbazaar-go/pull/180","diff_url":"https://github.com/OpenBazaar/openbazaar-go/pull/180.diff","patch_url":"https://github.com/OpenBazaar/openbazaar-go/pull/180.patch","issue_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/180","number":180,"state":"open","locked":false,"title":"Dispute Resolution","user":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"body":"- [x]  Create proto objects\r\n- [x]  Create API call to open dispute\r\n- [x]  Send dispute to moderator and vendor\r\n- [x]  Create `cases` table in database\r\n- [x]  Create `cases` unit tests\r\n- [x]  Handle receipt of dispute message\r\n- [x]  Alternate contract copy to moderator\r\n- [x]  Create GET case API call\r\n- [x] Create dispute open integration tests\r\n- [x] Have moderator validate signatures on contracts\r\n- [x]  Create close dispute API call\r\n- [x]  Send close dispute message to other parties\r\n- [x]  Handle close dispute message\r\n- [x]  Create accept dispute resolution API call\r\n- [x]  Create dispute close integration tests\r\n- [ ]  Update API documentation","created_at":"2016-10-28T15:21:34Z","updated_at":"2016-12-21T19:32:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0acc81e0e9f621d9f8760d210504cea8539cae27","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/milestones/1","html_url":"https://github.com/OpenBazaar/openbazaar-go/milestone/1","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/milestones/1/labels","id":2130228,"number":1,"title":"v1.0-alpha","description":"","creator":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":3,"state":"open","created_at":"2016-11-11T20:12:43Z","updated_at":"2016-12-15T17:22:27Z","due_on":"2017-01-31T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180/commits","review_comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180/comments","review_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/180/comments","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/statuses/bc2035005261f07b6fbc2cb5203d2c372ef1f68d","head":{"label":"cpacia:master","ref":"master","sha":"bc2035005261f07b6fbc2cb5203d2c372ef1f68d","user":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"repo":{"id":63965163,"name":"openbazaar-go","full_name":"cpacia/openbazaar-go","owner":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpacia/openbazaar-go","description":"OpenBazaar Server Daemon in Go","fork":true,"url":"https://api.github.com/repos/cpacia/openbazaar-go","forks_url":"https://api.github.com/repos/cpacia/openbazaar-go/forks","keys_url":"https://api.github.com/repos/cpacia/openbazaar-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpacia/openbazaar-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpacia/openbazaar-go/teams","hooks_url":"https://api.github.com/repos/cpacia/openbazaar-go/hooks","issue_events_url":"https://api.github.com/repos/cpacia/openbazaar-go/issues/events{/number}","events_url":"https://api.github.com/repos/cpacia/openbazaar-go/events","assignees_url":"https://api.github.com/repos/cpacia/openbazaar-go/assignees{/user}","branches_url":"https://api.github.com/repos/cpacia/openbazaar-go/branches{/branch}","tags_url":"https://api.github.com/repos/cpacia/openbazaar-go/tags","blobs_url":"https://api.github.com/repos/cpacia/openbazaar-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpacia/openbazaar-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpacia/openbazaar-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpacia/openbazaar-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpacia/openbazaar-go/statuses/{sha}","languages_url":"https://api.github.com/repos/cpacia/openbazaar-go/languages","stargazers_url":"https://api.github.com/repos/cpacia/openbazaar-go/stargazers","contributors_url":"https://api.github.com/repos/cpacia/openbazaar-go/contributors","subscribers_url":"https://api.github.com/repos/cpacia/openbazaar-go/subscribers","subscription_url":"https://api.github.com/repos/cpacia/openbazaar-go/subscription","commits_url":"https://api.github.com/repos/cpacia/openbazaar-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpacia/openbazaar-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpacia/openbazaar-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpacia/openbazaar-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpacia/openbazaar-go/contents/{+path}","compare_url":"https://api.github.com/repos/cpacia/openbazaar-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpacia/openbazaar-go/merges","archive_url":"https://api.github.com/repos/cpacia/openbazaar-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpacia/openbazaar-go/downloads","issues_url":"https://api.github.com/repos/cpacia/openbazaar-go/issues{/number}","pulls_url":"https://api.github.com/repos/cpacia/openbazaar-go/pulls{/number}","milestones_url":"https://api.github.com/repos/cpacia/openbazaar-go/milestones{/number}","notifications_url":"https://api.github.com/repos/cpacia/openbazaar-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpacia/openbazaar-go/labels{/name}","releases_url":"https://api.github.com/repos/cpacia/openbazaar-go/releases{/id}","deployments_url":"https://api.github.com/repos/cpacia/openbazaar-go/deployments","created_at":"2016-07-22T15:49:15Z","updated_at":"2016-07-22T15:49:16Z","pushed_at":"2016-12-19T15:53:16Z","git_url":"git://github.com/cpacia/openbazaar-go.git","ssh_url":"git@github.com:cpacia/openbazaar-go.git","clone_url":"https://github.com/cpacia/openbazaar-go.git","svn_url":"https://github.com/cpacia/openbazaar-go","homepage":null,"size":31605,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenBazaar:master","ref":"master","sha":"318663df4ba42c262798e6be761294be95100408","user":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":55795245,"name":"openbazaar-go","full_name":"OpenBazaar/openbazaar-go","owner":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenBazaar/openbazaar-go","description":"OpenBazaar Server Daemon in Go","fork":false,"url":"https://api.github.com/repos/OpenBazaar/openbazaar-go","forks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/forks","keys_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/teams","hooks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/hooks","issue_events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/events{/number}","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/events","assignees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/assignees{/user}","branches_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/branches{/branch}","tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/tags","blobs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/languages","stargazers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/stargazers","contributors_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/contributors","subscribers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/subscribers","subscription_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/subscription","commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/contents/{+path}","compare_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/merges","archive_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/downloads","issues_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues{/number}","pulls_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/labels{/name}","releases_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/releases{/id}","deployments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-go/deployments","created_at":"2016-04-08T16:52:40Z","updated_at":"2016-12-19T22:12:48Z","pushed_at":"2016-12-19T16:49:50Z","git_url":"git://github.com/OpenBazaar/openbazaar-go.git","ssh_url":"git@github.com:OpenBazaar/openbazaar-go.git","clone_url":"https://github.com/OpenBazaar/openbazaar-go.git","svn_url":"https://github.com/OpenBazaar/openbazaar-go","homepage":null,"size":31353,"stargazers_count":98,"watchers_count":98,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":67,"forks":27,"open_issues":67,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-go/pull/180"},"issue":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/180"},"comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-go/statuses/bc2035005261f07b6fbc2cb5203d2c372ef1f68d"}}}}
{"actor":{"display_login":"cpacia"}}