{"action":"created","issue":{"url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/4203","repository_url":"https://api.github.com/repos/MetaMask/metamask-extension","labels_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/4203/labels{/name}","comments_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/4203/comments","events_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/4203/events","html_url":"https://github.com/MetaMask/metamask-extension/issues/4203","id":320612765,"node_id":"MDU6SXNzdWUzMjA2MTI3NjU=","number":4203,"title":"Show browser notifications when transactions complete.","user":{"login":"danfinlay","id":542863,"node_id":"MDQ6VXNlcjU0Mjg2Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/542863?v=4","gravatar_id":"","url":"https://api.github.com/users/danfinlay","html_url":"https://github.com/danfinlay","followers_url":"https://api.github.com/users/danfinlay/followers","following_url":"https://api.github.com/users/danfinlay/following{/other_user}","gists_url":"https://api.github.com/users/danfinlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danfinlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfinlay/subscriptions","organizations_url":"https://api.github.com/users/danfinlay/orgs","repos_url":"https://api.github.com/users/danfinlay/repos","events_url":"https://api.github.com/users/danfinlay/events{/privacy}","received_events_url":"https://api.github.com/users/danfinlay/received_events","type":"User","site_admin":false},"labels":[{"id":257037924,"node_id":"MDU6TGFiZWwyNTcwMzc5MjQ=","url":"https://api.github.com/repos/MetaMask/metamask-extension/labels/T01-enhancement","name":"T01-enhancement","color":"84b6eb","default":false},{"id":718035930,"node_id":"MDU6TGFiZWw3MTgwMzU5MzA=","url":"https://api.github.com/repos/MetaMask/metamask-extension/labels/bounty%20worthy","name":"bounty worthy","color":"96e05e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/MetaMask/metamask-extension/milestones/20","html_url":"https://github.com/MetaMask/metamask-extension/milestone/20","labels_url":"https://api.github.com/repos/MetaMask/metamask-extension/milestones/20/labels","id":3245917,"node_id":"MDk6TWlsZXN0b25lMzI0NTkxNw==","number":20,"title":"Sprint 06","description":"","creator":{"login":"danfinlay","id":542863,"node_id":"MDQ6VXNlcjU0Mjg2Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/542863?v=4","gravatar_id":"","url":"https://api.github.com/users/danfinlay","html_url":"https://github.com/danfinlay","followers_url":"https://api.github.com/users/danfinlay/followers","following_url":"https://api.github.com/users/danfinlay/following{/other_user}","gists_url":"https://api.github.com/users/danfinlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danfinlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfinlay/subscriptions","organizations_url":"https://api.github.com/users/danfinlay/orgs","repos_url":"https://api.github.com/users/danfinlay/repos","events_url":"https://api.github.com/users/danfinlay/events{/privacy}","received_events_url":"https://api.github.com/users/danfinlay/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"closed","created_at":"2018-04-05T17:58:21Z","updated_at":"2018-07-09T22:14:28Z","due_on":"2018-05-31T07:00:00Z","closed_at":"2018-07-09T22:14:28Z"},"comments":1,"created_at":"2018-05-06T17:49:41Z","updated_at":"2018-07-19T17:30:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We should use the browser notification API to let the user know when a transaction enters a [final state]:\r\n\r\n- confirmed\r\n- failed\r\n- dropped\r\n\r\nThose three confirmations would have their own texts:\r\n\r\n### Confirmed tx\r\n\r\nTransaction ${tx.nonce} confirmed! `View on Etherscan`\r\n\r\n### Failed tx\r\n\r\nTransaction ${tx.nonce} failed. (Maybe append tx.error.message)\r\n\r\n### Dropped tx\r\n\r\nA Transaction ${tx.nonce} was dropped, because another transaction with that number was successfully processed.\r\n\r\n(We may not want to show this one, especially since it is usually accompanied by a confirmed tx)\r\n\r\n## Implementation\r\n\r\nShould use [extensionizer](https://www.npmjs.com/package/extensionizer) to access the notifications API:\r\n\r\nhttps://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/notifications\r\n\r\nMetaMask does not include platform-specific APIs within the [metamask-controller](https://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/metamask-controller.js) or its dependencies. Instead, functions to `showConfirmedTransaction`, `showFailedTransaction`, and `showDroppedTransaction` should be defined on the [extension platform object](https://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/platforms/extension.js), which is passed in to the MetaMask controller on initialization:\r\nhttps://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/background.js#L261"},"comment":{"url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/comments/406354810","html_url":"https://github.com/MetaMask/metamask-extension/issues/4203#issuecomment-406354810","issue_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/4203","id":406354810,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM1NDgxMA==","user":{"login":"gitcoinbot","id":27903976,"node_id":"MDQ6VXNlcjI3OTAzOTc2","avatar_url":"https://avatars2.githubusercontent.com/u/27903976?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinbot","html_url":"https://github.com/gitcoinbot","followers_url":"https://api.github.com/users/gitcoinbot/followers","following_url":"https://api.github.com/users/gitcoinbot/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinbot/subscriptions","organizations_url":"https://api.github.com/users/gitcoinbot/orgs","repos_url":"https://api.github.com/users/gitcoinbot/repos","events_url":"https://api.github.com/users/gitcoinbot/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinbot/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T17:30:09Z","updated_at":"2018-07-19T17:30:09Z","author_association":"NONE","body":"Issue Status: 1. Open 2. **Started** 3. Submitted 4. Done \n\n<hr>\n\n__Work has been started__.\n\n\nThese users each claimed they can complete the work by 4 weeks, 1 day from now. Please review their questions below:\n\n\n1. [scsaba](https://gitcoin.co/profile/scsaba) has started work. \t\n * Q: No questions so far.\n\n"}}
{"actor":{"display_login":"gitcoinbot"}}