{"action":"created","comment":{"url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/comments/287549509","pull_request_review_id":241988308,"id":287549509,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NzU0OTUwOQ==","diff_hunk":"@@ -0,0 +1,81 @@\n+//\n+// This source file is part of the 0x.swift open source project\n+// Copyright 2019 The 0x.swift Authors\n+// Licensed under Apache License v2.0\n+//\n+// ERC721Events.swift\n+//\n+// Created by Igor Shmakov on 24/05/2019\n+//\n+\n+import Foundation\n+import Web3Swift\n+\n+public struct ERC721Events {\n+    \n+    public struct Transfer: ABIEvent {\n+        \n+        public static let types: [ABIEventType] = [\n+            ABIEventType(type: EthAddress.self, indexed: true),\n+            ABIEventType(type: EthAddress.self, indexed: true),\n+            ABIEventType(type: EthNumber.self, indexed: true)\n+        ]\n+        \n+        public let from: EthAddress\n+        public let to: EthAddress\n+        public let tokenId: EthNumber\n+        \n+        public init(log: TransactionLog) throws {\n+            \n+            try Transfer.verifySignature(log: log)\n+            \n+            self.from = EthAddress(bytes: TrimmedZeroPrefixBytes(origin: try log.topics()[1]))\n+            self.to = EthAddress(bytes: TrimmedZeroPrefixBytes(origin: try log.topics()[2]))\n+            self.tokenId = EthNumber(hex: try log.topics()[3])\n+        }\n+    }\n+    \n+    public struct Approval: ABIEvent {\n+        \n+        public static let types: [ABIEventType] = [\n+            ABIEventType(type: EthAddress.self, indexed: true),\n+            ABIEventType(type: EthAddress.self, indexed: true),\n+            ABIEventType(type: EthNumber.self, indexed: true)\n+        ]\n+        \n+        public let owner: EthAddress\n+        public let approved: EthAddress\n+        public let tokenId: EthNumber\n+        \n+        public init(log: TransactionLog) throws {\n+            \n+            try Approval.verifySignature(log: log)\n+            \n+            self.owner = EthAddress(bytes: TrimmedZeroPrefixBytes(origin: try log.topics()[1]))","path":"0x.swift/ERC721/ERC721Events.swift","position":54,"original_position":54,"commit_id":"1a5281e0113a8720ec54221b00157d0719c753d0","original_commit_id":"1a5281e0113a8720ec54221b00157d0719c753d0","user":{"login":"shmakovigor","id":10052224,"node_id":"MDQ6VXNlcjEwMDUyMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/10052224?v=4","gravatar_id":"","url":"https://api.github.com/users/shmakovigor","html_url":"https://github.com/shmakovigor","followers_url":"https://api.github.com/users/shmakovigor/followers","following_url":"https://api.github.com/users/shmakovigor/following{/other_user}","gists_url":"https://api.github.com/users/shmakovigor/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakovigor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakovigor/subscriptions","organizations_url":"https://api.github.com/users/shmakovigor/orgs","repos_url":"https://api.github.com/users/shmakovigor/repos","events_url":"https://api.github.com/users/shmakovigor/events{/privacy}","received_events_url":"https://api.github.com/users/shmakovigor/received_events","type":"User","site_admin":false},"body":"Tuple is not a dynamic type therefore ```parseArray``` won't be able to return tuple of variable length.","created_at":"2019-05-25T03:40:02Z","updated_at":"2019-05-25T03:40:03Z","html_url":"https://github.com/zeriontech/0x.swift/pull/13#discussion_r287549509","pull_request_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/comments/287549509"},"html":{"href":"https://github.com/zeriontech/0x.swift/pull/13#discussion_r287549509"},"pull_request":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13"}},"in_reply_to_id":287500214},"pull_request":{"url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13","id":278071219,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc4MDcxMjE5","html_url":"https://github.com/zeriontech/0x.swift/pull/13","diff_url":"https://github.com/zeriontech/0x.swift/pull/13.diff","patch_url":"https://github.com/zeriontech/0x.swift/pull/13.patch","issue_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/13","number":13,"state":"open","locked":false,"title":"Ethereum logs base logic","user":{"login":"rockfridrich","id":4190988,"node_id":"MDQ6VXNlcjQxOTA5ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/4190988?v=4","gravatar_id":"","url":"https://api.github.com/users/rockfridrich","html_url":"https://github.com/rockfridrich","followers_url":"https://api.github.com/users/rockfridrich/followers","following_url":"https://api.github.com/users/rockfridrich/following{/other_user}","gists_url":"https://api.github.com/users/rockfridrich/gists{/gist_id}","starred_url":"https://api.github.com/users/rockfridrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockfridrich/subscriptions","organizations_url":"https://api.github.com/users/rockfridrich/orgs","repos_url":"https://api.github.com/users/rockfridrich/repos","events_url":"https://api.github.com/users/rockfridrich/events{/privacy}","received_events_url":"https://api.github.com/users/rockfridrich/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-12T18:20:16Z","updated_at":"2019-05-25T03:40:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"416b30e8bfe3ad48f9d026ca5c691c1bbea8a3a2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"grachyov","id":7680193,"node_id":"MDQ6VXNlcjc2ODAxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7680193?v=4","gravatar_id":"","url":"https://api.github.com/users/grachyov","html_url":"https://github.com/grachyov","followers_url":"https://api.github.com/users/grachyov/followers","following_url":"https://api.github.com/users/grachyov/following{/other_user}","gists_url":"https://api.github.com/users/grachyov/gists{/gist_id}","starred_url":"https://api.github.com/users/grachyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grachyov/subscriptions","organizations_url":"https://api.github.com/users/grachyov/orgs","repos_url":"https://api.github.com/users/grachyov/repos","events_url":"https://api.github.com/users/grachyov/events{/privacy}","received_events_url":"https://api.github.com/users/grachyov/received_events","type":"User","site_admin":false},{"login":"shmakovigor","id":10052224,"node_id":"MDQ6VXNlcjEwMDUyMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/10052224?v=4","gravatar_id":"","url":"https://api.github.com/users/shmakovigor","html_url":"https://github.com/shmakovigor","followers_url":"https://api.github.com/users/shmakovigor/followers","following_url":"https://api.github.com/users/shmakovigor/following{/other_user}","gists_url":"https://api.github.com/users/shmakovigor/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakovigor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakovigor/subscriptions","organizations_url":"https://api.github.com/users/shmakovigor/orgs","repos_url":"https://api.github.com/users/shmakovigor/repos","events_url":"https://api.github.com/users/shmakovigor/events{/privacy}","received_events_url":"https://api.github.com/users/shmakovigor/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13/commits","review_comments_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13/comments","review_comment_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/13/comments","statuses_url":"https://api.github.com/repos/zeriontech/0x.swift/statuses/1a5281e0113a8720ec54221b00157d0719c753d0","head":{"label":"zeriontech:logs","ref":"logs","sha":"1a5281e0113a8720ec54221b00157d0719c753d0","user":{"login":"zeriontech","id":18306895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzA2ODk1","avatar_url":"https://avatars1.githubusercontent.com/u/18306895?v=4","gravatar_id":"","url":"https://api.github.com/users/zeriontech","html_url":"https://github.com/zeriontech","followers_url":"https://api.github.com/users/zeriontech/followers","following_url":"https://api.github.com/users/zeriontech/following{/other_user}","gists_url":"https://api.github.com/users/zeriontech/gists{/gist_id}","starred_url":"https://api.github.com/users/zeriontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeriontech/subscriptions","organizations_url":"https://api.github.com/users/zeriontech/orgs","repos_url":"https://api.github.com/users/zeriontech/repos","events_url":"https://api.github.com/users/zeriontech/events{/privacy}","received_events_url":"https://api.github.com/users/zeriontech/received_events","type":"Organization","site_admin":false},"repo":{"id":176339302,"node_id":"MDEwOlJlcG9zaXRvcnkxNzYzMzkzMDI=","name":"0x.swift","full_name":"zeriontech/0x.swift","private":false,"owner":{"login":"zeriontech","id":18306895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzA2ODk1","avatar_url":"https://avatars1.githubusercontent.com/u/18306895?v=4","gravatar_id":"","url":"https://api.github.com/users/zeriontech","html_url":"https://github.com/zeriontech","followers_url":"https://api.github.com/users/zeriontech/followers","following_url":"https://api.github.com/users/zeriontech/following{/other_user}","gists_url":"https://api.github.com/users/zeriontech/gists{/gist_id}","starred_url":"https://api.github.com/users/zeriontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeriontech/subscriptions","organizations_url":"https://api.github.com/users/zeriontech/orgs","repos_url":"https://api.github.com/users/zeriontech/repos","events_url":"https://api.github.com/users/zeriontech/events{/privacy}","received_events_url":"https://api.github.com/users/zeriontech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zeriontech/0x.swift","description":"Swift Library for 0x protocol","fork":false,"url":"https://api.github.com/repos/zeriontech/0x.swift","forks_url":"https://api.github.com/repos/zeriontech/0x.swift/forks","keys_url":"https://api.github.com/repos/zeriontech/0x.swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zeriontech/0x.swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zeriontech/0x.swift/teams","hooks_url":"https://api.github.com/repos/zeriontech/0x.swift/hooks","issue_events_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/events{/number}","events_url":"https://api.github.com/repos/zeriontech/0x.swift/events","assignees_url":"https://api.github.com/repos/zeriontech/0x.swift/assignees{/user}","branches_url":"https://api.github.com/repos/zeriontech/0x.swift/branches{/branch}","tags_url":"https://api.github.com/repos/zeriontech/0x.swift/tags","blobs_url":"https://api.github.com/repos/zeriontech/0x.swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zeriontech/0x.swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zeriontech/0x.swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/zeriontech/0x.swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zeriontech/0x.swift/statuses/{sha}","languages_url":"https://api.github.com/repos/zeriontech/0x.swift/languages","stargazers_url":"https://api.github.com/repos/zeriontech/0x.swift/stargazers","contributors_url":"https://api.github.com/repos/zeriontech/0x.swift/contributors","subscribers_url":"https://api.github.com/repos/zeriontech/0x.swift/subscribers","subscription_url":"https://api.github.com/repos/zeriontech/0x.swift/subscription","commits_url":"https://api.github.com/repos/zeriontech/0x.swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/zeriontech/0x.swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/zeriontech/0x.swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/zeriontech/0x.swift/contents/{+path}","compare_url":"https://api.github.com/repos/zeriontech/0x.swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zeriontech/0x.swift/merges","archive_url":"https://api.github.com/repos/zeriontech/0x.swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zeriontech/0x.swift/downloads","issues_url":"https://api.github.com/repos/zeriontech/0x.swift/issues{/number}","pulls_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls{/number}","milestones_url":"https://api.github.com/repos/zeriontech/0x.swift/milestones{/number}","notifications_url":"https://api.github.com/repos/zeriontech/0x.swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zeriontech/0x.swift/labels{/name}","releases_url":"https://api.github.com/repos/zeriontech/0x.swift/releases{/id}","deployments_url":"https://api.github.com/repos/zeriontech/0x.swift/deployments","created_at":"2019-03-18T17:44:42Z","updated_at":"2019-05-22T18:35:05Z","pushed_at":"2019-05-24T18:50:28Z","git_url":"git://github.com/zeriontech/0x.swift.git","ssh_url":"git@github.com:zeriontech/0x.swift.git","clone_url":"https://github.com/zeriontech/0x.swift.git","svn_url":"https://github.com/zeriontech/0x.swift","homepage":null,"size":130,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"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":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"zeriontech:master","ref":"master","sha":"0f44f51c83597a5fdfda6e85631ab047433cfa86","user":{"login":"zeriontech","id":18306895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzA2ODk1","avatar_url":"https://avatars1.githubusercontent.com/u/18306895?v=4","gravatar_id":"","url":"https://api.github.com/users/zeriontech","html_url":"https://github.com/zeriontech","followers_url":"https://api.github.com/users/zeriontech/followers","following_url":"https://api.github.com/users/zeriontech/following{/other_user}","gists_url":"https://api.github.com/users/zeriontech/gists{/gist_id}","starred_url":"https://api.github.com/users/zeriontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeriontech/subscriptions","organizations_url":"https://api.github.com/users/zeriontech/orgs","repos_url":"https://api.github.com/users/zeriontech/repos","events_url":"https://api.github.com/users/zeriontech/events{/privacy}","received_events_url":"https://api.github.com/users/zeriontech/received_events","type":"Organization","site_admin":false},"repo":{"id":176339302,"node_id":"MDEwOlJlcG9zaXRvcnkxNzYzMzkzMDI=","name":"0x.swift","full_name":"zeriontech/0x.swift","private":false,"owner":{"login":"zeriontech","id":18306895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzA2ODk1","avatar_url":"https://avatars1.githubusercontent.com/u/18306895?v=4","gravatar_id":"","url":"https://api.github.com/users/zeriontech","html_url":"https://github.com/zeriontech","followers_url":"https://api.github.com/users/zeriontech/followers","following_url":"https://api.github.com/users/zeriontech/following{/other_user}","gists_url":"https://api.github.com/users/zeriontech/gists{/gist_id}","starred_url":"https://api.github.com/users/zeriontech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeriontech/subscriptions","organizations_url":"https://api.github.com/users/zeriontech/orgs","repos_url":"https://api.github.com/users/zeriontech/repos","events_url":"https://api.github.com/users/zeriontech/events{/privacy}","received_events_url":"https://api.github.com/users/zeriontech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zeriontech/0x.swift","description":"Swift Library for 0x protocol","fork":false,"url":"https://api.github.com/repos/zeriontech/0x.swift","forks_url":"https://api.github.com/repos/zeriontech/0x.swift/forks","keys_url":"https://api.github.com/repos/zeriontech/0x.swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zeriontech/0x.swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zeriontech/0x.swift/teams","hooks_url":"https://api.github.com/repos/zeriontech/0x.swift/hooks","issue_events_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/events{/number}","events_url":"https://api.github.com/repos/zeriontech/0x.swift/events","assignees_url":"https://api.github.com/repos/zeriontech/0x.swift/assignees{/user}","branches_url":"https://api.github.com/repos/zeriontech/0x.swift/branches{/branch}","tags_url":"https://api.github.com/repos/zeriontech/0x.swift/tags","blobs_url":"https://api.github.com/repos/zeriontech/0x.swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zeriontech/0x.swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zeriontech/0x.swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/zeriontech/0x.swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zeriontech/0x.swift/statuses/{sha}","languages_url":"https://api.github.com/repos/zeriontech/0x.swift/languages","stargazers_url":"https://api.github.com/repos/zeriontech/0x.swift/stargazers","contributors_url":"https://api.github.com/repos/zeriontech/0x.swift/contributors","subscribers_url":"https://api.github.com/repos/zeriontech/0x.swift/subscribers","subscription_url":"https://api.github.com/repos/zeriontech/0x.swift/subscription","commits_url":"https://api.github.com/repos/zeriontech/0x.swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/zeriontech/0x.swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/zeriontech/0x.swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/zeriontech/0x.swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/zeriontech/0x.swift/contents/{+path}","compare_url":"https://api.github.com/repos/zeriontech/0x.swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zeriontech/0x.swift/merges","archive_url":"https://api.github.com/repos/zeriontech/0x.swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zeriontech/0x.swift/downloads","issues_url":"https://api.github.com/repos/zeriontech/0x.swift/issues{/number}","pulls_url":"https://api.github.com/repos/zeriontech/0x.swift/pulls{/number}","milestones_url":"https://api.github.com/repos/zeriontech/0x.swift/milestones{/number}","notifications_url":"https://api.github.com/repos/zeriontech/0x.swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zeriontech/0x.swift/labels{/name}","releases_url":"https://api.github.com/repos/zeriontech/0x.swift/releases{/id}","deployments_url":"https://api.github.com/repos/zeriontech/0x.swift/deployments","created_at":"2019-03-18T17:44:42Z","updated_at":"2019-05-22T18:35:05Z","pushed_at":"2019-05-24T18:50:28Z","git_url":"git://github.com/zeriontech/0x.swift.git","ssh_url":"git@github.com:zeriontech/0x.swift.git","clone_url":"https://github.com/zeriontech/0x.swift.git","svn_url":"https://github.com/zeriontech/0x.swift","homepage":null,"size":130,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"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":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13"},"html":{"href":"https://github.com/zeriontech/0x.swift/pull/13"},"issue":{"href":"https://api.github.com/repos/zeriontech/0x.swift/issues/13"},"comments":{"href":"https://api.github.com/repos/zeriontech/0x.swift/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zeriontech/0x.swift/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/zeriontech/0x.swift/statuses/1a5281e0113a8720ec54221b00157d0719c753d0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"shmakovigor"}}