{"action":"created","issue":{"url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/10","repository_url":"https://api.github.com/repos/EthereumCommonwealth/Proposals","labels_url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/10/comments","events_url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/10/events","html_url":"https://github.com/EthereumCommonwealth/Proposals/issues/10","id":328440057,"node_id":"MDU6SXNzdWUzMjg0NDAwNTc=","number":10,"title":"BOUNTY: Officiality checker (web3.js)","user":{"login":"Dexaran","id":26142412,"node_id":"MDQ6VXNlcjI2MTQyNDEy","avatar_url":"https://avatars1.githubusercontent.com/u/26142412?v=4","gravatar_id":"","url":"https://api.github.com/users/Dexaran","html_url":"https://github.com/Dexaran","followers_url":"https://api.github.com/users/Dexaran/followers","following_url":"https://api.github.com/users/Dexaran/following{/other_user}","gists_url":"https://api.github.com/users/Dexaran/gists{/gist_id}","starred_url":"https://api.github.com/users/Dexaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dexaran/subscriptions","organizations_url":"https://api.github.com/users/Dexaran/orgs","repos_url":"https://api.github.com/users/Dexaran/repos","events_url":"https://api.github.com/users/Dexaran/events{/privacy}","received_events_url":"https://api.github.com/users/Dexaran/received_events","type":"User","site_admin":false},"labels":[{"id":921860040,"node_id":"MDU6TGFiZWw5MjE4NjAwNDA=","url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/labels/accepted","name":"accepted","color":"5bf778","default":false},{"id":951703321,"node_id":"MDU6TGFiZWw5NTE3MDMzMjE=","url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/labels/in-progress","name":"in-progress","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-06-01T09:10:04Z","updated_at":"2018-06-05T13:47:40Z","closed_at":null,"author_association":"MEMBER","body":"# Proposal\r\n\r\nThe Callisto team allocates 12,000 CLO as a bounty for the implementation of \"Officiality Checker\" service UI.\r\n\"Officiality Checker is based on [ECIP93](https://github.com/ethereumproject/ECIPs/issues/93) and [Media Resources Registry](https://github.com/Dexaran/media-resources-registry) smart-contract.\r\n\r\n# Description\r\n\r\nOfficiality Checker service must be an open source web application. It may be (1) a standalone web page OR (2) a separate tab at [ClassicEtherWallet](https://github.com/EthereumCommonwealth/etherwallet).\r\n\r\nThe main purpose of this application is to allow an average user to check whether a certain media resource is considered \"official\" at Callisto or not.\r\n\r\nOfficiality checker UI must have:\r\n- Input text field\r\n- \"CHECK\" button\r\n\r\nA user should input a link to the media resource into the text field and click the \"CHECK\" button to perform the check.\r\n\r\nAfter the user has clicked the button, Officiality Checker must invoke the [is_official()](https://github.com/Dexaran/media-resources-registry/blob/master/MediaRegistry.sol#L48) function of the Media Registry contract to verify the inputted link. If the contract has returned `true` then the Officiality Checker must display a message that the media resource IS official. Otherwise, the Officiality Checker must display a warning message that the media resource is NOT official for Callisto.\r\n\r\nMedia Registry contract is currently deployed at Callisto network at [0xf6f29e5ba51171c4ef4997bd0208c7e9bc5d5eda](https://explorer.callisto.network/account/0xf6f29e5ba51171c4ef4997bd0208c7e9bc5d5eda) address.\r\n\r\n# Bounty\r\n\r\nOne time payment: 12,000 CLO.\r\n"},"comment":{"url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/comments/394715329","html_url":"https://github.com/EthereumCommonwealth/Proposals/issues/10#issuecomment-394715329","issue_url":"https://api.github.com/repos/EthereumCommonwealth/Proposals/issues/10","id":394715329,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDcxNTMyOQ==","user":{"login":"redni","id":18102267,"node_id":"MDQ6VXNlcjE4MTAyMjY3","avatar_url":"https://avatars1.githubusercontent.com/u/18102267?v=4","gravatar_id":"","url":"https://api.github.com/users/redni","html_url":"https://github.com/redni","followers_url":"https://api.github.com/users/redni/followers","following_url":"https://api.github.com/users/redni/following{/other_user}","gists_url":"https://api.github.com/users/redni/gists{/gist_id}","starred_url":"https://api.github.com/users/redni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redni/subscriptions","organizations_url":"https://api.github.com/users/redni/orgs","repos_url":"https://api.github.com/users/redni/repos","events_url":"https://api.github.com/users/redni/events{/privacy}","received_events_url":"https://api.github.com/users/redni/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T13:47:40Z","updated_at":"2018-06-05T13:47:40Z","author_association":"NONE","body":"It's best to add links without beginning (`https://, http://`) and endless (slash `/`) and lowercase to the contract. So, type\r\n\r\n`callisto.network`\r\n`twitter.com/callistosupport`\r\n\r\ninstead of\r\n\r\n`https://callisto.network/`\r\n`https://twitter.com/CallistoSupport`\r\n\r\nthen such a checker will be able to check each link if you add a simple rule to the code.\r\n\r\nNow is the case that you need to cut the address to delete the beginning and end and then 4 rules to correctly get the result and it does not work for links like `https://twitter.com/Callistosupport` `https://twitter.com/callistosupport`, etc.\r\n\r\n```js\r\ncontract.is_official(\"http://\" + path) === true ||\r\ncontract.is_official(\"https://\" + path) === true ||\r\ncontract.is_official(\"http://\" + path + '/') === true ||\r\ncontract.is_official(\"https://\" + path + '/') === true\r\n```\r\n\r\nBecause `https://callisto.network/` return true and `http://callisto.network/` returns false. "}}
{"actor":{"display_login":"redni"}}