{"action":"created","issue":{"url":"https://api.github.com/repos/polkadot-js/api/issues/217","repository_url":"https://api.github.com/repos/polkadot-js/api","labels_url":"https://api.github.com/repos/polkadot-js/api/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/polkadot-js/api/issues/217/comments","events_url":"https://api.github.com/repos/polkadot-js/api/issues/217/events","html_url":"https://github.com/polkadot-js/api/pull/217","id":367263798,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNzQyODEw","number":217,"title":"Intelligent constructor","user":{"login":"amaurymartiny","id":1293565,"node_id":"MDQ6VXNlcjEyOTM1NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/1293565?v=4","gravatar_id":"","url":"https://api.github.com/users/amaurymartiny","html_url":"https://github.com/amaurymartiny","followers_url":"https://api.github.com/users/amaurymartiny/followers","following_url":"https://api.github.com/users/amaurymartiny/following{/other_user}","gists_url":"https://api.github.com/users/amaurymartiny/gists{/gist_id}","starred_url":"https://api.github.com/users/amaurymartiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaurymartiny/subscriptions","organizations_url":"https://api.github.com/users/amaurymartiny/orgs","repos_url":"https://api.github.com/users/amaurymartiny/repos","events_url":"https://api.github.com/users/amaurymartiny/events{/privacy}","received_events_url":"https://api.github.com/users/amaurymartiny/received_events","type":"User","site_admin":false},"labels":[{"id":1024936367,"node_id":"MDU6TGFiZWwxMDI0OTM2MzY3","url":"https://api.github.com/repos/polkadot-js/api/labels/@types","name":"@types","color":"fbca04","default":false},{"id":992984824,"node_id":"MDU6TGFiZWw5OTI5ODQ4MjQ=","url":"https://api.github.com/repos/polkadot-js/api/labels/WIP","name":"WIP","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-05T15:36:07Z","updated_at":"2018-10-05T15:42:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/polkadot-js/api/pulls/217","html_url":"https://github.com/polkadot-js/api/pull/217","diff_url":"https://github.com/polkadot-js/api/pull/217.diff","patch_url":"https://github.com/polkadot-js/api/pull/217.patch"},"body":"Effort to remove all `fromJSON` and `fromU8a` from types, and initialize them solely via constructor. Their constructor should be intelligent enough to handle all kinds of inputs (incl. of course JSON and Uint8Array inputs).\r\n\r\nFor consistency, I propose that this decoding/input handling be done in the static method `decode`. The constructor will just call this `decode` method.\r\n\r\nRelated #161."},"comment":{"url":"https://api.github.com/repos/polkadot-js/api/issues/comments/427409426","html_url":"https://github.com/polkadot-js/api/pull/217#issuecomment-427409426","issue_url":"https://api.github.com/repos/polkadot-js/api/issues/217","id":427409426,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzQwOTQyNg==","user":{"login":"coveralls","id":2354108,"node_id":"MDQ6VXNlcjIzNTQxMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2354108?v=4","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T15:42:05Z","updated_at":"2018-10-05T15:42:05Z","author_association":"NONE","body":"\n[![Coverage Status](https://coveralls.io/builds/19373160/badge)](https://coveralls.io/builds/19373160)\n\nCoverage increased (+0.03%) to 85.341% when pulling **bb0e0e1a6b32473950d30ed4ff4181abad847688 on am-only-constructor** into **d4990f838195e8248b9ae42294ba9d6370b5f795 on master**.\n"}}
{"actor":{"display_login":"coveralls"}}