{"action":"created","comment":{"url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/comments/206570883","pull_request_review_id":142007164,"id":206570883,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjU3MDg4Mw==","diff_hunk":"@@ -0,0 +1,208 @@\n+module Cardano.Wallet.Kernel.Accounts (\n+      createAccount\n+    , deleteAccount\n+    , updateAccount\n+    -- * Errors\n+    , CreateAccountError(..)\n+    , DeleteAccountError(..)\n+    , UpdateAccountError(..)\n+    ) where\n+\n+import qualified Prelude\n+import           Universum\n+\n+import           Formatting (bprint, build, formatToString, (%))\n+import qualified Formatting as F\n+import qualified Formatting.Buildable\n+import           System.Random.MWC (GenIO, createSystemRandom, uniformR)\n+\n+import           Data.Acid (update)\n+\n+import           Pos.Core (mkCoin)\n+import           Pos.Crypto (EncryptedSecretKey, PassPhrase)\n+\n+import           Cardano.Wallet.Kernel.DB.AcidState (CreateHdAccount (..), DB,\n+                     DeleteHdAccount (..), UpdateHdAccountName (..))\n+import           Cardano.Wallet.Kernel.DB.HdWallet (AccountName (..),\n+                     HdAccount (..), HdAccountId (..), HdAccountIx (..),\n+                     HdRootId, hdAccountIdParent, hdAccountName)\n+import           Cardano.Wallet.Kernel.DB.HdWallet.Create\n+                     (CreateHdAccountError (..), initHdAccount)\n+import           Cardano.Wallet.Kernel.DB.HdWallet.Delete\n+                     (DeleteHdAccountError (..))\n+import           Cardano.Wallet.Kernel.DB.HdWallet.Derivation\n+                     (HardeningMode (..), deriveIndex)\n+import           Cardano.Wallet.Kernel.DB.HdWallet.Update\n+                     (UpdateHdAccountError (..))\n+import           Cardano.Wallet.Kernel.DB.InDb (InDb (..))\n+import           Cardano.Wallet.Kernel.DB.Spec (Checkpoint (..), emptyPending)\n+import           Cardano.Wallet.Kernel.Internal (PassiveWallet, walletKeystore,\n+                     wallets)\n+import qualified Cardano.Wallet.Kernel.Keystore as Keystore\n+import           Cardano.Wallet.Kernel.Types (WalletId (..))\n+\n+data CreateAccountError =\n+      CreateAccountUnknownHdRoot HdRootId\n+      -- ^ When trying to create the 'Account', the parent 'HdRoot' was not\n+      -- there.\n+    | CreateAccountKeystoreNotFound WalletId\n+      -- ^ When trying to create the 'Account', the 'Keystore' didn't have\n+      -- any secret associated with the input 'WalletId'.\n+    | CreateAccountHdRndAccountSpaceSaturated HdRootId\n+      -- ^ The available number of HD accounts in use is such that trying\n+      -- to find another random index would be too expensive.\n+    deriving Eq\n+\n+instance Buildable CreateAccountError where\n+    build (CreateAccountUnknownHdRoot uRoot) =\n+        bprint (\"CreateAccountUnknownHdRoot \" % F.build) uRoot\n+    build (CreateAccountKeystoreNotFound accId) =\n+        bprint (\"CreateAccountKeystoreNotFound \" % F.build) accId\n+    build (CreateAccountHdRndAccountSpaceSaturated hdAcc) =\n+        bprint (\"CreateAccountHdRndAccountSpaceSaturated \" % F.build) hdAcc\n+\n+instance Show CreateAccountError where\n+    show = formatToString build\n+\n+instance Exception CreateAccountError\n+\n+--\n+--  Delete-related errors\n+--\n+\n+data DeleteAccountError =\n+      DeleteAccountUnknownHdRoot HdRootId\n+      -- ^ When trying to delete the 'Account', the parent 'HdRoot' was not\n+      -- there.\n+    deriving Eq\n+\n+instance Buildable DeleteAccountError where\n+    build (DeleteAccountUnknownHdRoot uRoot) =\n+        bprint (\"DeleteAccountUnknownHdRoot \" % F.build) uRoot\n+\n+instance Show DeleteAccountError where\n+    show = formatToString build\n+\n+instance Exception DeleteAccountError\n+\n+--\n+-- Update-related errors\n+\n+data UpdateAccountError =\n+      UpdateAccountUnknownHdRoot HdRootId\n+      -- ^ When trying to update the 'Account', the parent 'HdRoot' was not\n+      -- there.\n+    | UpdateAccountUnknownHdAccount HdAccountId\n+      -- ^ When trying to update the 'Account', the account was not there.\n+    deriving Eq\n+\n+instance Buildable UpdateAccountError where\n+    build (UpdateAccountUnknownHdRoot uRoot) =\n+        bprint (\"UpdateAccountUnknownHdRoot \" % F.build) uRoot\n+    build (UpdateAccountUnknownHdAccount uAccount) =\n+        bprint (\"UpdateAccountUnknownHdAccount \" % F.build) uAccount\n+\n+instance Show UpdateAccountError where\n+    show = formatToString build\n+\n+instance Exception UpdateAccountError\n+\n+-- | Creates a new 'Account' for the input wallet.\n+-- Note: @it does not@ generate a new 'Address' to go in tandem with this\n+-- 'Account'. This will be responsibility of the wallet layer.\n+createAccount :: PassPhrase\n+              -- ^ The 'Passphrase' (a.k.a the \\\"Spending Password\\\").\n+              -> AccountName\n+              -- ^ The name for this account.\n+              -> WalletId\n+              -- ^ An abstract notion of a 'Wallet identifier\n+              -> PassiveWallet\n+              -> IO (Either CreateAccountError HdAccount)\n+createAccount spendingPassword accountName walletId pw = do\n+    let keystore = pw ^. walletKeystore\n+    case walletId of\n+         (WalletIdHdRnd hdRootId) -> do\n+             mbEsk <- Keystore.lookup (WalletIdHdRnd hdRootId) keystore\n+             case mbEsk of\n+                  Nothing  -> return (Left $ CreateAccountKeystoreNotFound walletId)\n+                  Just esk ->\n+                      createHdRndAccount spendingPassword\n+                                         accountName\n+                                         esk\n+                                         hdRootId\n+                                         pw\n+\n+-- | Creates a new 'Account' using the random HD derivation under the hood.\n+-- This code follows the same pattern of 'createHdRndAddress', but the two\n+-- functions are \"similarly different\" enough to not make convenient generalise\n+-- the code.\n+createHdRndAccount :: PassPhrase\n+                   -> AccountName\n+                   -> EncryptedSecretKey\n+                   -> HdRootId\n+                   -> PassiveWallet\n+                   -> IO (Either CreateAccountError HdAccount)\n+createHdRndAccount _spendingPassword accountName _esk rootId pw = do\n+    gen <- createSystemRandom\n+    go gen 0\n+    where\n+        go :: GenIO -> Word32 -> IO (Either CreateAccountError HdAccount)\n+        go gen collisions =\n+            case collisions >= maxAllowedCollisions of\n+                 True  -> return $ Left (CreateAccountHdRndAccountSpaceSaturated rootId)\n+                 False -> tryGenerateAccount gen collisions\n+\n+        tryGenerateAccount :: GenIO\n+                           -> Word32\n+                           -- ^ The current number of collisions\n+                           -> IO (Either CreateAccountError HdAccount)\n+        tryGenerateAccount gen collisions = do\n+            newIndex <- deriveIndex (flip uniformR gen) HdAccountIx HardDerivation\n+            let hdAccountId = HdAccountId rootId newIndex\n+                newAccount  = initHdAccount hdAccountId genesisCheckpoint &\n+                              hdAccountName .~ accountName\n+                db = pw ^. wallets\n+            res <- update db (CreateHdAccount newAccount)\n+            case res of\n+                 (Left (CreateHdAccountExists _)) ->\n+                     go gen (succ collisions)\n+                 (Left (CreateHdAccountUnknownRoot _)) ->\n+                     return (Left $ CreateAccountUnknownHdRoot rootId)\n+                 Right () -> return (Right newAccount)\n+\n+        -- The maximum number of allowed collisions.\n+        maxAllowedCollisions :: Word32\n+        maxAllowedCollisions = 42","path":"wallet-new/src/Cardano/Wallet/Kernel/Accounts.hs","position":null,"original_position":175,"commit_id":"74f4edde48400cd5f7deac6651b13adc46da7bec","original_commit_id":"0d65f382f582141f7304bc57ced059eed2ac62f7","user":{"login":"adinapoli-iohk","id":29383371,"node_id":"MDQ6VXNlcjI5MzgzMzcx","avatar_url":"https://avatars3.githubusercontent.com/u/29383371?v=4","gravatar_id":"","url":"https://api.github.com/users/adinapoli-iohk","html_url":"https://github.com/adinapoli-iohk","followers_url":"https://api.github.com/users/adinapoli-iohk/followers","following_url":"https://api.github.com/users/adinapoli-iohk/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli-iohk/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli-iohk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli-iohk/subscriptions","organizations_url":"https://api.github.com/users/adinapoli-iohk/orgs","repos_url":"https://api.github.com/users/adinapoli-iohk/repos","events_url":"https://api.github.com/users/adinapoli-iohk/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli-iohk/received_events","type":"User","site_admin":false},"body":"@edsko will address this one tomorrow.","created_at":"2018-07-31T15:17:53Z","updated_at":"2018-07-31T15:17:53Z","html_url":"https://github.com/input-output-hk/cardano-sl/pull/3316#discussion_r206570883","pull_request_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/comments/206570883"},"html":{"href":"https://github.com/input-output-hk/cardano-sl/pull/3316#discussion_r206570883"},"pull_request":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316"}},"in_reply_to_id":206453226},"pull_request":{"url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316","id":204402521,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDAyNTIx","html_url":"https://github.com/input-output-hk/cardano-sl/pull/3316","diff_url":"https://github.com/input-output-hk/cardano-sl/pull/3316.diff","patch_url":"https://github.com/input-output-hk/cardano-sl/pull/3316.patch","issue_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/3316","number":3316,"state":"open","locked":false,"title":"[CBR-342] Accounts handlers implemented with the new data layer.","user":{"login":"adinapoli-iohk","id":29383371,"node_id":"MDQ6VXNlcjI5MzgzMzcx","avatar_url":"https://avatars3.githubusercontent.com/u/29383371?v=4","gravatar_id":"","url":"https://api.github.com/users/adinapoli-iohk","html_url":"https://github.com/adinapoli-iohk","followers_url":"https://api.github.com/users/adinapoli-iohk/followers","following_url":"https://api.github.com/users/adinapoli-iohk/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli-iohk/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli-iohk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli-iohk/subscriptions","organizations_url":"https://api.github.com/users/adinapoli-iohk/orgs","repos_url":"https://api.github.com/users/adinapoli-iohk/repos","events_url":"https://api.github.com/users/adinapoli-iohk/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli-iohk/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nThis PR implements (almost) all the `Accounts` endpoints end-2-end, with the new data layer. Notable exception is the `redeemADA` endpoint which was fairly recently added by @KtorZ 's squad. As that is a bit of non-trivial work to implement, I have decided to tackle it separately as part of CBR-349.\r\n\r\n## Linked issue\r\n\r\nhttps://iohk.myjetbrains.com/youtrack/issue/CBR-227\r\n\r\n## Type of change\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply and `~` in the ones that do not: -->\r\n- [ ] 🐞 Bug fix (non-breaking change which fixes an issue)\r\n- [X] 🛠 New feature (non-breaking change which adds functionality)\r\n- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)\r\n- [ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc\r\n- [ ] 🔨 New or improved tests for existing code\r\n- [ ] ⛑ git-flow chore (backport, hotfix, etc)\r\n\r\n## Developer checklist\r\n<!--- A mental checklist for the developer submitting the PR. Put an `x` in all the boxes that apply and `~` in the ones that do not: --->\r\n- [X] I have read the [style guide](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/style-guide.md) document, and my code follows the code style of this project.\r\n- [X] If my code deals with exceptions, it follows the [guidelines](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/exceptions.md).\r\n- [X] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on [cardanodocs.com](https://github.com/input-output-hk/cardanodocs.com), amending the inline [Haddock](https://www.haskell.org/haddock/) comments, any relevant README file or one of the document listed in the [docs](https://github.com/input-output-hk/cardano-sl/tree/develop/docs) directory.\r\n\r\n## Testing checklist\r\n<!-- If you aren't providing any tests as part of this PR, use this section to state clearly why. It needs to be a strong motivation and definitely the exception, not the rule. -->\r\n- [X] I have added tests to cover my changes.\r\n- [X] All new and existing tests passed.\r\n\r\n## QA Steps\r\n<!--- Which are the steps needed to test this feature, if any? -->\r\n\r\n## Screenshots (if available)\r\n<!--- Upload a GIF, an asciinema video or an image demoing the feature -->\r\n","created_at":"2018-07-27T11:15:59Z","updated_at":"2018-07-31T15:17:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e5a65494cb69bc34d9e14e9c05fe70b3bfd9b9b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316/commits","review_comments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316/comments","review_comment_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/3316/comments","statuses_url":"https://api.github.com/repos/input-output-hk/cardano-sl/statuses/74f4edde48400cd5f7deac6651b13adc46da7bec","head":{"label":"input-output-hk:feature/cbr-342-accounts-handlers","ref":"feature/cbr-342-accounts-handlers","sha":"74f4edde48400cd5f7deac6651b13adc46da7bec","user":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"repo":{"id":70913997,"node_id":"MDEwOlJlcG9zaXRvcnk3MDkxMzk5Nw==","name":"cardano-sl","full_name":"input-output-hk/cardano-sl","owner":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/input-output-hk/cardano-sl","description":"Cryptographic currency implementing Ouroboros PoS protocol","fork":false,"url":"https://api.github.com/repos/input-output-hk/cardano-sl","forks_url":"https://api.github.com/repos/input-output-hk/cardano-sl/forks","keys_url":"https://api.github.com/repos/input-output-hk/cardano-sl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/input-output-hk/cardano-sl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/input-output-hk/cardano-sl/teams","hooks_url":"https://api.github.com/repos/input-output-hk/cardano-sl/hooks","issue_events_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/events{/number}","events_url":"https://api.github.com/repos/input-output-hk/cardano-sl/events","assignees_url":"https://api.github.com/repos/input-output-hk/cardano-sl/assignees{/user}","branches_url":"https://api.github.com/repos/input-output-hk/cardano-sl/branches{/branch}","tags_url":"https://api.github.com/repos/input-output-hk/cardano-sl/tags","blobs_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/refs{/sha}","trees_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/input-output-hk/cardano-sl/statuses/{sha}","languages_url":"https://api.github.com/repos/input-output-hk/cardano-sl/languages","stargazers_url":"https://api.github.com/repos/input-output-hk/cardano-sl/stargazers","contributors_url":"https://api.github.com/repos/input-output-hk/cardano-sl/contributors","subscribers_url":"https://api.github.com/repos/input-output-hk/cardano-sl/subscribers","subscription_url":"https://api.github.com/repos/input-output-hk/cardano-sl/subscription","commits_url":"https://api.github.com/repos/input-output-hk/cardano-sl/commits{/sha}","git_commits_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/commits{/sha}","comments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/comments{/number}","issue_comment_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/comments{/number}","contents_url":"https://api.github.com/repos/input-output-hk/cardano-sl/contents/{+path}","compare_url":"https://api.github.com/repos/input-output-hk/cardano-sl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/input-output-hk/cardano-sl/merges","archive_url":"https://api.github.com/repos/input-output-hk/cardano-sl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/input-output-hk/cardano-sl/downloads","issues_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues{/number}","pulls_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls{/number}","milestones_url":"https://api.github.com/repos/input-output-hk/cardano-sl/milestones{/number}","notifications_url":"https://api.github.com/repos/input-output-hk/cardano-sl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/input-output-hk/cardano-sl/labels{/name}","releases_url":"https://api.github.com/repos/input-output-hk/cardano-sl/releases{/id}","deployments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/deployments","created_at":"2016-10-14T13:44:38Z","updated_at":"2018-07-31T15:15:49Z","pushed_at":"2018-07-31T15:06:35Z","git_url":"git://github.com/input-output-hk/cardano-sl.git","ssh_url":"git@github.com:input-output-hk/cardano-sl.git","clone_url":"https://github.com/input-output-hk/cardano-sl.git","svn_url":"https://github.com/input-output-hk/cardano-sl","homepage":"","size":109694,"stargazers_count":2787,"watchers_count":2787,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":465,"mirror_url":null,"archived":false,"open_issues_count":172,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":465,"open_issues":172,"watchers":2787,"default_branch":"develop"}},"base":{"label":"input-output-hk:develop","ref":"develop","sha":"9644c97fe53c772289a561e66fa2f0a483ad27e1","user":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"repo":{"id":70913997,"node_id":"MDEwOlJlcG9zaXRvcnk3MDkxMzk5Nw==","name":"cardano-sl","full_name":"input-output-hk/cardano-sl","owner":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/input-output-hk/cardano-sl","description":"Cryptographic currency implementing Ouroboros PoS protocol","fork":false,"url":"https://api.github.com/repos/input-output-hk/cardano-sl","forks_url":"https://api.github.com/repos/input-output-hk/cardano-sl/forks","keys_url":"https://api.github.com/repos/input-output-hk/cardano-sl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/input-output-hk/cardano-sl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/input-output-hk/cardano-sl/teams","hooks_url":"https://api.github.com/repos/input-output-hk/cardano-sl/hooks","issue_events_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/events{/number}","events_url":"https://api.github.com/repos/input-output-hk/cardano-sl/events","assignees_url":"https://api.github.com/repos/input-output-hk/cardano-sl/assignees{/user}","branches_url":"https://api.github.com/repos/input-output-hk/cardano-sl/branches{/branch}","tags_url":"https://api.github.com/repos/input-output-hk/cardano-sl/tags","blobs_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/refs{/sha}","trees_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/input-output-hk/cardano-sl/statuses/{sha}","languages_url":"https://api.github.com/repos/input-output-hk/cardano-sl/languages","stargazers_url":"https://api.github.com/repos/input-output-hk/cardano-sl/stargazers","contributors_url":"https://api.github.com/repos/input-output-hk/cardano-sl/contributors","subscribers_url":"https://api.github.com/repos/input-output-hk/cardano-sl/subscribers","subscription_url":"https://api.github.com/repos/input-output-hk/cardano-sl/subscription","commits_url":"https://api.github.com/repos/input-output-hk/cardano-sl/commits{/sha}","git_commits_url":"https://api.github.com/repos/input-output-hk/cardano-sl/git/commits{/sha}","comments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/comments{/number}","issue_comment_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/comments{/number}","contents_url":"https://api.github.com/repos/input-output-hk/cardano-sl/contents/{+path}","compare_url":"https://api.github.com/repos/input-output-hk/cardano-sl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/input-output-hk/cardano-sl/merges","archive_url":"https://api.github.com/repos/input-output-hk/cardano-sl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/input-output-hk/cardano-sl/downloads","issues_url":"https://api.github.com/repos/input-output-hk/cardano-sl/issues{/number}","pulls_url":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls{/number}","milestones_url":"https://api.github.com/repos/input-output-hk/cardano-sl/milestones{/number}","notifications_url":"https://api.github.com/repos/input-output-hk/cardano-sl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/input-output-hk/cardano-sl/labels{/name}","releases_url":"https://api.github.com/repos/input-output-hk/cardano-sl/releases{/id}","deployments_url":"https://api.github.com/repos/input-output-hk/cardano-sl/deployments","created_at":"2016-10-14T13:44:38Z","updated_at":"2018-07-31T15:15:49Z","pushed_at":"2018-07-31T15:06:35Z","git_url":"git://github.com/input-output-hk/cardano-sl.git","ssh_url":"git@github.com:input-output-hk/cardano-sl.git","clone_url":"https://github.com/input-output-hk/cardano-sl.git","svn_url":"https://github.com/input-output-hk/cardano-sl","homepage":"","size":109694,"stargazers_count":2787,"watchers_count":2787,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":465,"mirror_url":null,"archived":false,"open_issues_count":172,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":465,"open_issues":172,"watchers":2787,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316"},"html":{"href":"https://github.com/input-output-hk/cardano-sl/pull/3316"},"issue":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/3316"},"comments":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/issues/3316/comments"},"review_comments":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316/comments"},"review_comment":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/pulls/3316/commits"},"statuses":{"href":"https://api.github.com/repos/input-output-hk/cardano-sl/statuses/74f4edde48400cd5f7deac6651b13adc46da7bec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"adinapoli-iohk"}}