{"action":"created","issue":{"url":"https://api.github.com/repos/airalab/hs-web3/issues/61","repository_url":"https://api.github.com/repos/airalab/hs-web3","labels_url":"https://api.github.com/repos/airalab/hs-web3/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/airalab/hs-web3/issues/61/comments","events_url":"https://api.github.com/repos/airalab/hs-web3/issues/61/events","html_url":"https://github.com/airalab/hs-web3/pull/61","id":321394996,"number":61,"title":"Implementing offnode signing","user":{"login":"aupiff","id":804266,"avatar_url":"https://avatars1.githubusercontent.com/u/804266?v=4","gravatar_id":"","url":"https://api.github.com/users/aupiff","html_url":"https://github.com/aupiff","followers_url":"https://api.github.com/users/aupiff/followers","following_url":"https://api.github.com/users/aupiff/following{/other_user}","gists_url":"https://api.github.com/users/aupiff/gists{/gist_id}","starred_url":"https://api.github.com/users/aupiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aupiff/subscriptions","organizations_url":"https://api.github.com/users/aupiff/orgs","repos_url":"https://api.github.com/users/aupiff/repos","events_url":"https://api.github.com/users/aupiff/events{/privacy}","received_events_url":"https://api.github.com/users/aupiff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-09T00:57:27Z","updated_at":"2018-05-10T01:30:08Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/airalab/hs-web3/pulls/61","html_url":"https://github.com/airalab/hs-web3/pull/61","diff_url":"https://github.com/airalab/hs-web3/pull/61.diff","patch_url":"https://github.com/airalab/hs-web3/pull/61.patch"},"body":"Resolves #10.\r\n\r\n- Signing configuration requires supplying both a __private key__ and a __chainId__. The chainId will be different depending on what network a user is submitting transactions to (mainnet, Rinkby, etc.)\r\n\r\n```haskell\r\n-- | Web3 Provider\r\ndata Provider = Provider { jsonRpc :: JsonRpcProvider\r\n                         , signingConfiguration :: Maybe SigningConfiguration\r\n                         }\r\n\r\ndata SigningConfiguration = SigningConfiguration { privateKey      :: ByteString\r\n                                                 , chainIdentifier :: Integer }\r\n```\r\n\r\n- The `Web3` type has been updated to have the full `Provider` type in its Reader context so that the private key and chain identifier can be used when signing transactions.\r\n\r\n```haskell\r\nnewtype Web3 a = Web3 { unWeb3 :: ReaderT (Provider, Manager) IO a }\r\n```"},"comment":{"url":"https://api.github.com/repos/airalab/hs-web3/issues/comments/387923146","html_url":"https://github.com/airalab/hs-web3/pull/61#issuecomment-387923146","issue_url":"https://api.github.com/repos/airalab/hs-web3/issues/61","id":387923146,"user":{"login":"akru","id":786394,"avatar_url":"https://avatars0.githubusercontent.com/u/786394?v=4","gravatar_id":"","url":"https://api.github.com/users/akru","html_url":"https://github.com/akru","followers_url":"https://api.github.com/users/akru/followers","following_url":"https://api.github.com/users/akru/following{/other_user}","gists_url":"https://api.github.com/users/akru/gists{/gist_id}","starred_url":"https://api.github.com/users/akru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akru/subscriptions","organizations_url":"https://api.github.com/users/akru/orgs","repos_url":"https://api.github.com/users/akru/repos","events_url":"https://api.github.com/users/akru/events{/privacy}","received_events_url":"https://api.github.com/users/akru/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T01:30:08Z","updated_at":"2018-05-10T01:30:08Z","author_association":"OWNER","body":"Hello, @aupiff!\r\nGlad to see your PR! I’ll review it in few days."}}
{"actor":{"display_login":"akru"}}