{"action":"created","issue":{"url":"https://api.github.com/repos/daostack/arc/issues/518","repository_url":"https://api.github.com/repos/daostack/arc","labels_url":"https://api.github.com/repos/daostack/arc/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/daostack/arc/issues/518/comments","events_url":"https://api.github.com/repos/daostack/arc/issues/518/events","html_url":"https://github.com/daostack/arc/issues/518","id":349980139,"node_id":"MDU6SXNzdWUzNDk5ODAxMzk=","number":518,"title":"Add `GenesisProtocol.expiredProposals","user":{"login":"dkent600","id":1821666,"node_id":"MDQ6VXNlcjE4MjE2NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1821666?v=4","gravatar_id":"","url":"https://api.github.com/users/dkent600","html_url":"https://github.com/dkent600","followers_url":"https://api.github.com/users/dkent600/followers","following_url":"https://api.github.com/users/dkent600/following{/other_user}","gists_url":"https://api.github.com/users/dkent600/gists{/gist_id}","starred_url":"https://api.github.com/users/dkent600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkent600/subscriptions","organizations_url":"https://api.github.com/users/dkent600/orgs","repos_url":"https://api.github.com/users/dkent600/repos","events_url":"https://api.github.com/users/dkent600/events{/privacy}","received_events_url":"https://api.github.com/users/dkent600/received_events","type":"User","site_admin":false},"labels":[{"id":446731688,"node_id":"MDU6TGFiZWw0NDY3MzE2ODg=","url":"https://api.github.com/repos/daostack/arc/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-13T10:52:39Z","updated_at":"2018-08-13T15:31:24Z","closed_at":null,"author_association":"COLLABORATOR","body":"Would be useful to have a function `GenesisProtocol.expiredProposals(address _avatar)`.  This would enable Arc.js to easily calculate the number of boosted proposals that are not expired.\r\n\r\nCould look like this:\r\n\r\n```solidity\r\nfunction expiredProposals(bytes32 _paramsHash,address _avatar) public view returns(int) {\r\n  if (proposalsExpiredTimes[_avatar].count() != 0) {\r\n      // solium-disable-next-line security/no-block-members\r\n      return proposalsExpiredTimes[_avatar].rank(now);\r\n   } \r\n  return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/daostack/arc/issues/comments/412559771","html_url":"https://github.com/daostack/arc/issues/518#issuecomment-412559771","issue_url":"https://api.github.com/repos/daostack/arc/issues/518","id":412559771,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjU1OTc3MQ==","user":{"login":"dkent600","id":1821666,"node_id":"MDQ6VXNlcjE4MjE2NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1821666?v=4","gravatar_id":"","url":"https://api.github.com/users/dkent600","html_url":"https://github.com/dkent600","followers_url":"https://api.github.com/users/dkent600/followers","following_url":"https://api.github.com/users/dkent600/following{/other_user}","gists_url":"https://api.github.com/users/dkent600/gists{/gist_id}","starred_url":"https://api.github.com/users/dkent600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkent600/subscriptions","organizations_url":"https://api.github.com/users/dkent600/orgs","repos_url":"https://api.github.com/users/dkent600/repos","events_url":"https://api.github.com/users/dkent600/events{/privacy}","received_events_url":"https://api.github.com/users/dkent600/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T15:31:24Z","updated_at":"2018-08-13T15:31:24Z","author_association":"COLLABORATOR","body":"> Why are.js needs to calculate that\r\n\r\nArc.js would like to wrap the Genesis property `orgBoostedProposalsCnt`, but that property is not very useful since it includes expired proposals."}}
{"actor":{"display_login":"dkent600"}}