{"action":"opened","issue":{"url":"https://api.github.com/repos/plasma-group/plasma-core/issues/37","repository_url":"https://api.github.com/repos/plasma-group/plasma-core","labels_url":"https://api.github.com/repos/plasma-group/plasma-core/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/plasma-group/plasma-core/issues/37/comments","events_url":"https://api.github.com/repos/plasma-group/plasma-core/issues/37/events","html_url":"https://github.com/plasma-group/plasma-core/issues/37","id":395117702,"node_id":"MDU6SXNzdWUzOTUxMTc3MDI=","number":37,"title":"Create a RangeManagerService","user":{"login":"kfichter","id":14298799,"node_id":"MDQ6VXNlcjE0Mjk4Nzk5","avatar_url":"https://avatars1.githubusercontent.com/u/14298799?v=4","gravatar_id":"","url":"https://api.github.com/users/kfichter","html_url":"https://github.com/kfichter","followers_url":"https://api.github.com/users/kfichter/followers","following_url":"https://api.github.com/users/kfichter/following{/other_user}","gists_url":"https://api.github.com/users/kfichter/gists{/gist_id}","starred_url":"https://api.github.com/users/kfichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfichter/subscriptions","organizations_url":"https://api.github.com/users/kfichter/orgs","repos_url":"https://api.github.com/users/kfichter/repos","events_url":"https://api.github.com/users/kfichter/events{/privacy}","received_events_url":"https://api.github.com/users/kfichter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/plasma-group/plasma-core/milestones/1","html_url":"https://github.com/plasma-group/plasma-core/milestone/1","labels_url":"https://api.github.com/repos/plasma-group/plasma-core/milestones/1/labels","id":3922851,"node_id":"MDk6TWlsZXN0b25lMzkyMjg1MQ==","number":1,"title":"Release A","description":null,"creator":{"login":"kfichter","id":14298799,"node_id":"MDQ6VXNlcjE0Mjk4Nzk5","avatar_url":"https://avatars1.githubusercontent.com/u/14298799?v=4","gravatar_id":"","url":"https://api.github.com/users/kfichter","html_url":"https://github.com/kfichter","followers_url":"https://api.github.com/users/kfichter/followers","following_url":"https://api.github.com/users/kfichter/following{/other_user}","gists_url":"https://api.github.com/users/kfichter/gists{/gist_id}","starred_url":"https://api.github.com/users/kfichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfichter/subscriptions","organizations_url":"https://api.github.com/users/kfichter/orgs","repos_url":"https://api.github.com/users/kfichter/repos","events_url":"https://api.github.com/users/kfichter/events{/privacy}","received_events_url":"https://api.github.com/users/kfichter/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":11,"state":"open","created_at":"2018-12-25T01:37:26Z","updated_at":"2019-01-01T22:38:29Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2019-01-01T22:38:29Z","updated_at":"2019-01-01T22:38:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Is your feature request related to a problem? Please describe.**\r\nManaging a user's currently owned ranges is really difficult. `ChainService` is sort of handling this right now, but it'd be good to split the functionality of reading raw information from the local history store and managing owned ranges.\r\n\r\n**Describe the solution you'd like**\r\nWe should create a new service, `RangeManagerService`, that manages ranges for a user. This means:\r\n\r\n1. Returning a list of owned ranges with `getOwnedRanges`.\r\n2. Picking the best ranges for a transaction with `pickRanges`.\r\n3. Merging and splitting ranges intelligently when the user receives or sends a transaction to store the least amount of data necessary."}}
{"actor":{"display_login":"kfichter"}}