{"action":"created","comment":{"url":"https://api.github.com/repos/decred/Paymetheus/pulls/comments/73625819","id":73625819,"diff_hunk":"@@ -0,0 +1,404 @@\n+﻿using Paymetheus.Decred;\n+using Paymetheus.Decred.Util;\n+using Paymetheus.Decred.Wallet;\n+using Paymetheus.Framework;\n+using Grpc.Core;\n+using System;\n+using System.Windows;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.Windows.Input;\n+\n+namespace Paymetheus.ViewModels\n+{\n+    class PurchaseTicketsViewModel : ViewModelBase\n+    {\n+        public PurchaseTicketsViewModel() : base()\n+        {\n+            var synchronizer = ViewModelLocator.SynchronizerViewModel as SynchronizerViewModel;\n+            if (synchronizer != null)\n+            {\n+                SelectedAccount = synchronizer.Accounts[0];\n+            }\n+\n+            FetchStakeDifficultyCommand = new DelegateCommand(FetchStakeDifficultyAction);\n+            FetchStakeDifficultyCommand.Execute(null);\n+\n+            _purchaseTickets = new DelegateCommand(PurchaseTicketsAction);\n+            _purchaseTickets.Executable = false;\n+        }\n+\n+        private DelegateCommand _purchaseTickets;\n+        public ICommand Execute => _purchaseTickets;\n+\n+        private bool _poolChecked = false;\n+        public bool PoolChecked\n+        {\n+            get { return _poolChecked; }\n+            set { _poolChecked = value; RaisePropertyChanged(); }\n+        }\n+\n+        private bool _feesChecked = false;\n+        public bool FeesChecked\n+        {\n+            get { return _feesChecked; }\n+            set { _feesChecked = value; RaisePropertyChanged(); }\n+        }\n+\n+        private AccountViewModel _selectedAccount;\n+        public AccountViewModel SelectedAccount\n+        {\n+            get { return _selectedAccount; }\n+            set { _selectedAccount = value; RaisePropertyChanged(); }\n+        }\n+\n+        private Address _ticketAddress = null;\n+        private string _ticketAddressString;","path":"Paymetheus/ViewModels/PurchaseTicketsViewModel.cs","position":58,"original_position":58,"commit_id":"408246e6a5cb85fe5145d8ab7ac762f409b3b118","original_commit_id":"408246e6a5cb85fe5145d8ab7ac762f409b3b118","user":{"login":"jrick","id":1420313,"avatar_url":"https://avatars.githubusercontent.com/u/1420313?v=3","gravatar_id":"","url":"https://api.github.com/users/jrick","html_url":"https://github.com/jrick","followers_url":"https://api.github.com/users/jrick/followers","following_url":"https://api.github.com/users/jrick/following{/other_user}","gists_url":"https://api.github.com/users/jrick/gists{/gist_id}","starred_url":"https://api.github.com/users/jrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrick/subscriptions","organizations_url":"https://api.github.com/users/jrick/orgs","repos_url":"https://api.github.com/users/jrick/repos","events_url":"https://api.github.com/users/jrick/events{/privacy}","received_events_url":"https://api.github.com/users/jrick/received_events","type":"User","site_admin":false},"body":"default this to \"\" instead of null","created_at":"2016-08-05T00:28:10Z","updated_at":"2016-08-05T00:28:10Z","html_url":"https://github.com/decred/Paymetheus/pull/151#discussion_r73625819","pull_request_url":"https://api.github.com/repos/decred/Paymetheus/pulls/151","_links":{"self":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/comments/73625819"},"html":{"href":"https://github.com/decred/Paymetheus/pull/151#discussion_r73625819"},"pull_request":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/151"}}},"pull_request":{"url":"https://api.github.com/repos/decred/Paymetheus/pulls/151","id":80163065,"html_url":"https://github.com/decred/Paymetheus/pull/151","diff_url":"https://github.com/decred/Paymetheus/pull/151.diff","patch_url":"https://github.com/decred/Paymetheus/pull/151.patch","issue_url":"https://api.github.com/repos/decred/Paymetheus/issues/151","number":151,"state":"open","locked":false,"title":"Add new stake related views","user":{"login":"cjepson","id":10604806,"avatar_url":"https://avatars.githubusercontent.com/u/10604806?v=3","gravatar_id":"","url":"https://api.github.com/users/cjepson","html_url":"https://github.com/cjepson","followers_url":"https://api.github.com/users/cjepson/followers","following_url":"https://api.github.com/users/cjepson/following{/other_user}","gists_url":"https://api.github.com/users/cjepson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjepson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjepson/subscriptions","organizations_url":"https://api.github.com/users/cjepson/orgs","repos_url":"https://api.github.com/users/cjepson/repos","events_url":"https://api.github.com/users/cjepson/events{/privacy}","received_events_url":"https://api.github.com/users/cjepson/received_events","type":"User","site_admin":false},"body":"The following new stake related views have been added:\r\n1. Purchase ticket view\r\n2. Stake mining information view\r\n3. Scripts view\r\n\r\nTickets are now able to be purchased through the wallet\r\nand all applicable settings are modifiable.\r\n\r\nThe user is now able to see network and local statistics\r\nabout stake mining from the GUI.\r\n\r\nUsers are now able to import scripts through the GUI,\r\nfor example stake pool multisignature scripts.\r\n\r\nFixes #14 and #93.","created_at":"2016-08-04T22:52:49Z","updated_at":"2016-08-05T00:28:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1117fbd273e6362ea3e232c4e7d9252559546f1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/decred/Paymetheus/pulls/151/commits","review_comments_url":"https://api.github.com/repos/decred/Paymetheus/pulls/151/comments","review_comment_url":"https://api.github.com/repos/decred/Paymetheus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/decred/Paymetheus/issues/151/comments","statuses_url":"https://api.github.com/repos/decred/Paymetheus/statuses/408246e6a5cb85fe5145d8ab7ac762f409b3b118","head":{"label":"cjepson:cj_010816stakeviews2","ref":"cj_010816stakeviews2","sha":"408246e6a5cb85fe5145d8ab7ac762f409b3b118","user":{"login":"cjepson","id":10604806,"avatar_url":"https://avatars.githubusercontent.com/u/10604806?v=3","gravatar_id":"","url":"https://api.github.com/users/cjepson","html_url":"https://github.com/cjepson","followers_url":"https://api.github.com/users/cjepson/followers","following_url":"https://api.github.com/users/cjepson/following{/other_user}","gists_url":"https://api.github.com/users/cjepson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjepson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjepson/subscriptions","organizations_url":"https://api.github.com/users/cjepson/orgs","repos_url":"https://api.github.com/users/cjepson/repos","events_url":"https://api.github.com/users/cjepson/events{/privacy}","received_events_url":"https://api.github.com/users/cjepson/received_events","type":"User","site_admin":false},"repo":{"id":63197764,"name":"Paymetheus","full_name":"cjepson/Paymetheus","owner":{"login":"cjepson","id":10604806,"avatar_url":"https://avatars.githubusercontent.com/u/10604806?v=3","gravatar_id":"","url":"https://api.github.com/users/cjepson","html_url":"https://github.com/cjepson","followers_url":"https://api.github.com/users/cjepson/followers","following_url":"https://api.github.com/users/cjepson/following{/other_user}","gists_url":"https://api.github.com/users/cjepson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjepson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjepson/subscriptions","organizations_url":"https://api.github.com/users/cjepson/orgs","repos_url":"https://api.github.com/users/cjepson/repos","events_url":"https://api.github.com/users/cjepson/events{/privacy}","received_events_url":"https://api.github.com/users/cjepson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjepson/Paymetheus","description":"Decred Wallet for Windows","fork":true,"url":"https://api.github.com/repos/cjepson/Paymetheus","forks_url":"https://api.github.com/repos/cjepson/Paymetheus/forks","keys_url":"https://api.github.com/repos/cjepson/Paymetheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjepson/Paymetheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjepson/Paymetheus/teams","hooks_url":"https://api.github.com/repos/cjepson/Paymetheus/hooks","issue_events_url":"https://api.github.com/repos/cjepson/Paymetheus/issues/events{/number}","events_url":"https://api.github.com/repos/cjepson/Paymetheus/events","assignees_url":"https://api.github.com/repos/cjepson/Paymetheus/assignees{/user}","branches_url":"https://api.github.com/repos/cjepson/Paymetheus/branches{/branch}","tags_url":"https://api.github.com/repos/cjepson/Paymetheus/tags","blobs_url":"https://api.github.com/repos/cjepson/Paymetheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjepson/Paymetheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjepson/Paymetheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjepson/Paymetheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjepson/Paymetheus/statuses/{sha}","languages_url":"https://api.github.com/repos/cjepson/Paymetheus/languages","stargazers_url":"https://api.github.com/repos/cjepson/Paymetheus/stargazers","contributors_url":"https://api.github.com/repos/cjepson/Paymetheus/contributors","subscribers_url":"https://api.github.com/repos/cjepson/Paymetheus/subscribers","subscription_url":"https://api.github.com/repos/cjepson/Paymetheus/subscription","commits_url":"https://api.github.com/repos/cjepson/Paymetheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjepson/Paymetheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjepson/Paymetheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjepson/Paymetheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjepson/Paymetheus/contents/{+path}","compare_url":"https://api.github.com/repos/cjepson/Paymetheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjepson/Paymetheus/merges","archive_url":"https://api.github.com/repos/cjepson/Paymetheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjepson/Paymetheus/downloads","issues_url":"https://api.github.com/repos/cjepson/Paymetheus/issues{/number}","pulls_url":"https://api.github.com/repos/cjepson/Paymetheus/pulls{/number}","milestones_url":"https://api.github.com/repos/cjepson/Paymetheus/milestones{/number}","notifications_url":"https://api.github.com/repos/cjepson/Paymetheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjepson/Paymetheus/labels{/name}","releases_url":"https://api.github.com/repos/cjepson/Paymetheus/releases{/id}","deployments_url":"https://api.github.com/repos/cjepson/Paymetheus/deployments","created_at":"2016-07-12T22:55:43Z","updated_at":"2016-07-12T22:55:44Z","pushed_at":"2016-08-04T23:09:16Z","git_url":"git://github.com/cjepson/Paymetheus.git","ssh_url":"git@github.com:cjepson/Paymetheus.git","clone_url":"https://github.com/cjepson/Paymetheus.git","svn_url":"https://github.com/cjepson/Paymetheus","homepage":"","size":807,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"decred:master","ref":"master","sha":"2d48e25a2af5c08c5bbe564e548531806ba3765c","user":{"login":"decred","id":16297194,"avatar_url":"https://avatars.githubusercontent.com/u/16297194?v=3","gravatar_id":"","url":"https://api.github.com/users/decred","html_url":"https://github.com/decred","followers_url":"https://api.github.com/users/decred/followers","following_url":"https://api.github.com/users/decred/following{/other_user}","gists_url":"https://api.github.com/users/decred/gists{/gist_id}","starred_url":"https://api.github.com/users/decred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decred/subscriptions","organizations_url":"https://api.github.com/users/decred/orgs","repos_url":"https://api.github.com/users/decred/repos","events_url":"https://api.github.com/users/decred/events{/privacy}","received_events_url":"https://api.github.com/users/decred/received_events","type":"Organization","site_admin":false},"repo":{"id":51840979,"name":"Paymetheus","full_name":"decred/Paymetheus","owner":{"login":"decred","id":16297194,"avatar_url":"https://avatars.githubusercontent.com/u/16297194?v=3","gravatar_id":"","url":"https://api.github.com/users/decred","html_url":"https://github.com/decred","followers_url":"https://api.github.com/users/decred/followers","following_url":"https://api.github.com/users/decred/following{/other_user}","gists_url":"https://api.github.com/users/decred/gists{/gist_id}","starred_url":"https://api.github.com/users/decred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decred/subscriptions","organizations_url":"https://api.github.com/users/decred/orgs","repos_url":"https://api.github.com/users/decred/repos","events_url":"https://api.github.com/users/decred/events{/privacy}","received_events_url":"https://api.github.com/users/decred/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/decred/Paymetheus","description":"Decred Wallet for Windows","fork":true,"url":"https://api.github.com/repos/decred/Paymetheus","forks_url":"https://api.github.com/repos/decred/Paymetheus/forks","keys_url":"https://api.github.com/repos/decred/Paymetheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decred/Paymetheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decred/Paymetheus/teams","hooks_url":"https://api.github.com/repos/decred/Paymetheus/hooks","issue_events_url":"https://api.github.com/repos/decred/Paymetheus/issues/events{/number}","events_url":"https://api.github.com/repos/decred/Paymetheus/events","assignees_url":"https://api.github.com/repos/decred/Paymetheus/assignees{/user}","branches_url":"https://api.github.com/repos/decred/Paymetheus/branches{/branch}","tags_url":"https://api.github.com/repos/decred/Paymetheus/tags","blobs_url":"https://api.github.com/repos/decred/Paymetheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decred/Paymetheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decred/Paymetheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/decred/Paymetheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decred/Paymetheus/statuses/{sha}","languages_url":"https://api.github.com/repos/decred/Paymetheus/languages","stargazers_url":"https://api.github.com/repos/decred/Paymetheus/stargazers","contributors_url":"https://api.github.com/repos/decred/Paymetheus/contributors","subscribers_url":"https://api.github.com/repos/decred/Paymetheus/subscribers","subscription_url":"https://api.github.com/repos/decred/Paymetheus/subscription","commits_url":"https://api.github.com/repos/decred/Paymetheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/decred/Paymetheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/decred/Paymetheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/decred/Paymetheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/decred/Paymetheus/contents/{+path}","compare_url":"https://api.github.com/repos/decred/Paymetheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decred/Paymetheus/merges","archive_url":"https://api.github.com/repos/decred/Paymetheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decred/Paymetheus/downloads","issues_url":"https://api.github.com/repos/decred/Paymetheus/issues{/number}","pulls_url":"https://api.github.com/repos/decred/Paymetheus/pulls{/number}","milestones_url":"https://api.github.com/repos/decred/Paymetheus/milestones{/number}","notifications_url":"https://api.github.com/repos/decred/Paymetheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decred/Paymetheus/labels{/name}","releases_url":"https://api.github.com/repos/decred/Paymetheus/releases{/id}","deployments_url":"https://api.github.com/repos/decred/Paymetheus/deployments","created_at":"2016-02-16T14:16:39Z","updated_at":"2016-07-18T17:28:22Z","pushed_at":"2016-08-04T23:09:17Z","git_url":"git://github.com/decred/Paymetheus.git","ssh_url":"git@github.com:decred/Paymetheus.git","clone_url":"https://github.com/decred/Paymetheus.git","svn_url":"https://github.com/decred/Paymetheus","homepage":"","size":704,"stargazers_count":4,"watchers_count":4,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":35,"forks":3,"open_issues":35,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/151"},"html":{"href":"https://github.com/decred/Paymetheus/pull/151"},"issue":{"href":"https://api.github.com/repos/decred/Paymetheus/issues/151"},"comments":{"href":"https://api.github.com/repos/decred/Paymetheus/issues/151/comments"},"review_comments":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/151/comments"},"review_comment":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/decred/Paymetheus/pulls/151/commits"},"statuses":{"href":"https://api.github.com/repos/decred/Paymetheus/statuses/408246e6a5cb85fe5145d8ab7ac762f409b3b118"}}}}
{"actor":{"display_login":"jrick"}}