{"action":"created","comment":{"url":"https://api.github.com/repos/cosmos/voyager/pulls/comments/192767479","pull_request_review_id":125606171,"id":192767479,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mjc2NzQ3OQ==","diff_hunk":"@@ -61,6 +81,66 @@ export default ({ commit, node }) => {\n         })\n       })\n     },\n+    async queryTxInfo({ state, dispatch }, height) {\n+      let blockTxInfo = state.blockTxs.find(\n+        b => b.length && b[0].height === height\n+      )\n+      if (blockTxInfo) {\n+        return blockTxInfo\n+      }\n+      try {\n+        blockTxInfo = await dispatch(\"getTxs\", {\n+          key: 0,\n+          len:\n+            state.block && state.block.data && state.block.data.txs\n+              ? state.block.data.txs.length\n+              : 0,\n+          txs:\n+            state.block && state.block.data && state.block.data.txs\n+              ? state.block.data.txs.slice(0)\n+              : []\n+        })\n+        blockTxInfo && state.blockTxs.push(blockTxInfo)\n+        return blockTxInfo\n+      } catch (error) {\n+        return Promise.reject(error)\n+      }\n+    },\n+    convertTx({ state }, txstring) {\n+      let txbytes = b64.toByteArray(txstring)\n+      let varintlen = new Uint8Array(varint.encode(txbytes.length))\n+      let tmp = new Uint8Array(varintlen.byteLength + txbytes.byteLength)\n+      tmp.set(new Uint8Array(varintlen), 0)\n+      tmp.set(new Uint8Array(txbytes), varintlen.byteLength)\n+      return createHash(\"ripemd160\")\n+        .update(Buffer.from(tmp))\n+        .digest(\"hex\")\n+    },\n+    getTxs({ state, commit, dispatch }, { key, len, txs }) {\n+      return new Promise(async (resolve, reject) => {\n+        if (key >= len) return resolve(txs)","path":"app/src/renderer/vuex/modules/blockchain.js","position":118,"original_position":118,"commit_id":"57d3a3523a58d96982e62bec93857d691b9b21ee","original_commit_id":"57d3a3523a58d96982e62bec93857d691b9b21ee","user":{"login":"okwme","id":964052,"node_id":"MDQ6VXNlcjk2NDA1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/964052?v=4","gravatar_id":"","url":"https://api.github.com/users/okwme","html_url":"https://github.com/okwme","followers_url":"https://api.github.com/users/okwme/followers","following_url":"https://api.github.com/users/okwme/following{/other_user}","gists_url":"https://api.github.com/users/okwme/gists{/gist_id}","starred_url":"https://api.github.com/users/okwme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okwme/subscriptions","organizations_url":"https://api.github.com/users/okwme/orgs","repos_url":"https://api.github.com/users/okwme/repos","events_url":"https://api.github.com/users/okwme/events{/privacy}","received_events_url":"https://api.github.com/users/okwme/received_events","type":"User","site_admin":false},"body":"👍","created_at":"2018-06-04T14:47:50Z","updated_at":"2018-06-04T14:47:50Z","html_url":"https://github.com/cosmos/voyager/pull/770#discussion_r192767479","pull_request_url":"https://api.github.com/repos/cosmos/voyager/pulls/770","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/comments/192767479"},"html":{"href":"https://github.com/cosmos/voyager/pull/770#discussion_r192767479"},"pull_request":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/770"}},"in_reply_to_id":192753484},"pull_request":{"url":"https://api.github.com/repos/cosmos/voyager/pulls/770","id":191492646,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNDkyNjQ2","html_url":"https://github.com/cosmos/voyager/pull/770","diff_url":"https://github.com/cosmos/voyager/pull/770.diff","patch_url":"https://github.com/cosmos/voyager/pull/770.patch","issue_url":"https://api.github.com/repos/cosmos/voyager/issues/770","number":770,"state":"open","locked":false,"title":"Billy/454 tx info","user":{"login":"okwme","id":964052,"node_id":"MDQ6VXNlcjk2NDA1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/964052?v=4","gravatar_id":"","url":"https://api.github.com/users/okwme","html_url":"https://github.com/okwme","followers_url":"https://api.github.com/users/okwme/followers","following_url":"https://api.github.com/users/okwme/following{/other_user}","gists_url":"https://api.github.com/users/okwme/gists{/gist_id}","starred_url":"https://api.github.com/users/okwme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okwme/subscriptions","organizations_url":"https://api.github.com/users/okwme/orgs","repos_url":"https://api.github.com/users/okwme/repos","events_url":"https://api.github.com/users/okwme/events{/privacy}","received_events_url":"https://api.github.com/users/okwme/received_events","type":"User","site_admin":false},"body":"Closes #454 \r\n\r\nDescription:\r\nthe block explorer doesn't show any details of transactions.\r\n\r\nfollowed the same method of querying txs from the explorer and added an rpc handler to get them.\r\nneed help with layout design of how these should look @nylira @jolesbi \r\n\r\n![screenshot 2018-05-30 17 24 47](https://user-images.githubusercontent.com/964052/40730187-5e582476-642e-11e8-9989-1c92cecb7d61.png)\r\n\r\nwill add tests next as this is still WIP\r\n","created_at":"2018-05-30T15:25:59Z","updated_at":"2018-06-04T14:47:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01919c024d0bfd71ba0ee4109eb65f225846f699","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nylira","id":172531,"node_id":"MDQ6VXNlcjE3MjUzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/172531?v=4","gravatar_id":"","url":"https://api.github.com/users/nylira","html_url":"https://github.com/nylira","followers_url":"https://api.github.com/users/nylira/followers","following_url":"https://api.github.com/users/nylira/following{/other_user}","gists_url":"https://api.github.com/users/nylira/gists{/gist_id}","starred_url":"https://api.github.com/users/nylira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nylira/subscriptions","organizations_url":"https://api.github.com/users/nylira/orgs","repos_url":"https://api.github.com/users/nylira/repos","events_url":"https://api.github.com/users/nylira/events{/privacy}","received_events_url":"https://api.github.com/users/nylira/received_events","type":"User","site_admin":false},{"login":"NodeGuy","id":2148537,"node_id":"MDQ6VXNlcjIxNDg1Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2148537?v=4","gravatar_id":"","url":"https://api.github.com/users/NodeGuy","html_url":"https://github.com/NodeGuy","followers_url":"https://api.github.com/users/NodeGuy/followers","following_url":"https://api.github.com/users/NodeGuy/following{/other_user}","gists_url":"https://api.github.com/users/NodeGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/NodeGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NodeGuy/subscriptions","organizations_url":"https://api.github.com/users/NodeGuy/orgs","repos_url":"https://api.github.com/users/NodeGuy/repos","events_url":"https://api.github.com/users/NodeGuy/events{/privacy}","received_events_url":"https://api.github.com/users/NodeGuy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cosmos/voyager/pulls/770/commits","review_comments_url":"https://api.github.com/repos/cosmos/voyager/pulls/770/comments","review_comment_url":"https://api.github.com/repos/cosmos/voyager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cosmos/voyager/issues/770/comments","statuses_url":"https://api.github.com/repos/cosmos/voyager/statuses/57d3a3523a58d96982e62bec93857d691b9b21ee","head":{"label":"cosmos:billy/454-tx-info","ref":"billy/454-tx-info","sha":"57d3a3523a58d96982e62bec93857d691b9b21ee","user":{"login":"cosmos","id":228843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/228843?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmos","html_url":"https://github.com/cosmos","followers_url":"https://api.github.com/users/cosmos/followers","following_url":"https://api.github.com/users/cosmos/following{/other_user}","gists_url":"https://api.github.com/users/cosmos/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmos/subscriptions","organizations_url":"https://api.github.com/users/cosmos/orgs","repos_url":"https://api.github.com/users/cosmos/repos","events_url":"https://api.github.com/users/cosmos/events{/privacy}","received_events_url":"https://api.github.com/users/cosmos/received_events","type":"Organization","site_admin":false},"repo":{"id":99653950,"node_id":"MDEwOlJlcG9zaXRvcnk5OTY1Mzk1MA==","name":"voyager","full_name":"cosmos/voyager","owner":{"login":"cosmos","id":228843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/228843?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmos","html_url":"https://github.com/cosmos","followers_url":"https://api.github.com/users/cosmos/followers","following_url":"https://api.github.com/users/cosmos/following{/other_user}","gists_url":"https://api.github.com/users/cosmos/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmos/subscriptions","organizations_url":"https://api.github.com/users/cosmos/orgs","repos_url":"https://api.github.com/users/cosmos/repos","events_url":"https://api.github.com/users/cosmos/events{/privacy}","received_events_url":"https://api.github.com/users/cosmos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cosmos/voyager","description":"Cosmos Voyager — the user interface for the Cosmos Network. ✨","fork":false,"url":"https://api.github.com/repos/cosmos/voyager","forks_url":"https://api.github.com/repos/cosmos/voyager/forks","keys_url":"https://api.github.com/repos/cosmos/voyager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosmos/voyager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosmos/voyager/teams","hooks_url":"https://api.github.com/repos/cosmos/voyager/hooks","issue_events_url":"https://api.github.com/repos/cosmos/voyager/issues/events{/number}","events_url":"https://api.github.com/repos/cosmos/voyager/events","assignees_url":"https://api.github.com/repos/cosmos/voyager/assignees{/user}","branches_url":"https://api.github.com/repos/cosmos/voyager/branches{/branch}","tags_url":"https://api.github.com/repos/cosmos/voyager/tags","blobs_url":"https://api.github.com/repos/cosmos/voyager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosmos/voyager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosmos/voyager/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosmos/voyager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosmos/voyager/statuses/{sha}","languages_url":"https://api.github.com/repos/cosmos/voyager/languages","stargazers_url":"https://api.github.com/repos/cosmos/voyager/stargazers","contributors_url":"https://api.github.com/repos/cosmos/voyager/contributors","subscribers_url":"https://api.github.com/repos/cosmos/voyager/subscribers","subscription_url":"https://api.github.com/repos/cosmos/voyager/subscription","commits_url":"https://api.github.com/repos/cosmos/voyager/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosmos/voyager/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosmos/voyager/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosmos/voyager/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosmos/voyager/contents/{+path}","compare_url":"https://api.github.com/repos/cosmos/voyager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosmos/voyager/merges","archive_url":"https://api.github.com/repos/cosmos/voyager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosmos/voyager/downloads","issues_url":"https://api.github.com/repos/cosmos/voyager/issues{/number}","pulls_url":"https://api.github.com/repos/cosmos/voyager/pulls{/number}","milestones_url":"https://api.github.com/repos/cosmos/voyager/milestones{/number}","notifications_url":"https://api.github.com/repos/cosmos/voyager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosmos/voyager/labels{/name}","releases_url":"https://api.github.com/repos/cosmos/voyager/releases{/id}","deployments_url":"https://api.github.com/repos/cosmos/voyager/deployments","created_at":"2017-08-08T05:34:48Z","updated_at":"2018-06-04T10:12:42Z","pushed_at":"2018-06-04T13:50:57Z","git_url":"git://github.com/cosmos/voyager.git","ssh_url":"git@github.com:cosmos/voyager.git","clone_url":"https://github.com/cosmos/voyager.git","svn_url":"https://github.com/cosmos/voyager","homepage":"https://cosmos.network/voyager","size":44693,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":10,"open_issues":81,"watchers":86,"default_branch":"develop"}},"base":{"label":"cosmos:develop","ref":"develop","sha":"518e5cb24a9fc12314aae595455b5cba1bf12c64","user":{"login":"cosmos","id":228843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/228843?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmos","html_url":"https://github.com/cosmos","followers_url":"https://api.github.com/users/cosmos/followers","following_url":"https://api.github.com/users/cosmos/following{/other_user}","gists_url":"https://api.github.com/users/cosmos/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmos/subscriptions","organizations_url":"https://api.github.com/users/cosmos/orgs","repos_url":"https://api.github.com/users/cosmos/repos","events_url":"https://api.github.com/users/cosmos/events{/privacy}","received_events_url":"https://api.github.com/users/cosmos/received_events","type":"Organization","site_admin":false},"repo":{"id":99653950,"node_id":"MDEwOlJlcG9zaXRvcnk5OTY1Mzk1MA==","name":"voyager","full_name":"cosmos/voyager","owner":{"login":"cosmos","id":228843,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/228843?v=4","gravatar_id":"","url":"https://api.github.com/users/cosmos","html_url":"https://github.com/cosmos","followers_url":"https://api.github.com/users/cosmos/followers","following_url":"https://api.github.com/users/cosmos/following{/other_user}","gists_url":"https://api.github.com/users/cosmos/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmos/subscriptions","organizations_url":"https://api.github.com/users/cosmos/orgs","repos_url":"https://api.github.com/users/cosmos/repos","events_url":"https://api.github.com/users/cosmos/events{/privacy}","received_events_url":"https://api.github.com/users/cosmos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cosmos/voyager","description":"Cosmos Voyager — the user interface for the Cosmos Network. ✨","fork":false,"url":"https://api.github.com/repos/cosmos/voyager","forks_url":"https://api.github.com/repos/cosmos/voyager/forks","keys_url":"https://api.github.com/repos/cosmos/voyager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosmos/voyager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosmos/voyager/teams","hooks_url":"https://api.github.com/repos/cosmos/voyager/hooks","issue_events_url":"https://api.github.com/repos/cosmos/voyager/issues/events{/number}","events_url":"https://api.github.com/repos/cosmos/voyager/events","assignees_url":"https://api.github.com/repos/cosmos/voyager/assignees{/user}","branches_url":"https://api.github.com/repos/cosmos/voyager/branches{/branch}","tags_url":"https://api.github.com/repos/cosmos/voyager/tags","blobs_url":"https://api.github.com/repos/cosmos/voyager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosmos/voyager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosmos/voyager/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosmos/voyager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosmos/voyager/statuses/{sha}","languages_url":"https://api.github.com/repos/cosmos/voyager/languages","stargazers_url":"https://api.github.com/repos/cosmos/voyager/stargazers","contributors_url":"https://api.github.com/repos/cosmos/voyager/contributors","subscribers_url":"https://api.github.com/repos/cosmos/voyager/subscribers","subscription_url":"https://api.github.com/repos/cosmos/voyager/subscription","commits_url":"https://api.github.com/repos/cosmos/voyager/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosmos/voyager/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosmos/voyager/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosmos/voyager/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosmos/voyager/contents/{+path}","compare_url":"https://api.github.com/repos/cosmos/voyager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosmos/voyager/merges","archive_url":"https://api.github.com/repos/cosmos/voyager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosmos/voyager/downloads","issues_url":"https://api.github.com/repos/cosmos/voyager/issues{/number}","pulls_url":"https://api.github.com/repos/cosmos/voyager/pulls{/number}","milestones_url":"https://api.github.com/repos/cosmos/voyager/milestones{/number}","notifications_url":"https://api.github.com/repos/cosmos/voyager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosmos/voyager/labels{/name}","releases_url":"https://api.github.com/repos/cosmos/voyager/releases{/id}","deployments_url":"https://api.github.com/repos/cosmos/voyager/deployments","created_at":"2017-08-08T05:34:48Z","updated_at":"2018-06-04T10:12:42Z","pushed_at":"2018-06-04T13:50:57Z","git_url":"git://github.com/cosmos/voyager.git","ssh_url":"git@github.com:cosmos/voyager.git","clone_url":"https://github.com/cosmos/voyager.git","svn_url":"https://github.com/cosmos/voyager","homepage":"https://cosmos.network/voyager","size":44693,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":10,"open_issues":81,"watchers":86,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/770"},"html":{"href":"https://github.com/cosmos/voyager/pull/770"},"issue":{"href":"https://api.github.com/repos/cosmos/voyager/issues/770"},"comments":{"href":"https://api.github.com/repos/cosmos/voyager/issues/770/comments"},"review_comments":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/770/comments"},"review_comment":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cosmos/voyager/pulls/770/commits"},"statuses":{"href":"https://api.github.com/repos/cosmos/voyager/statuses/57d3a3523a58d96982e62bec93857d691b9b21ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"okwme"}}