{"action":"created","issue":{"url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/1265","repository_url":"https://api.github.com/repos/cosmos/cosmos-sdk","labels_url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/1265/comments","events_url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/1265/events","html_url":"https://github.com/cosmos/cosmos-sdk/pull/1265","id":332654854,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MDgzODIy","number":1265,"title":"Global Paramstore","user":{"login":"mossid","id":18329646,"node_id":"MDQ6VXNlcjE4MzI5NjQ2","avatar_url":"https://avatars0.githubusercontent.com/u/18329646?v=4","gravatar_id":"","url":"https://api.github.com/users/mossid","html_url":"https://github.com/mossid","followers_url":"https://api.github.com/users/mossid/followers","following_url":"https://api.github.com/users/mossid/following{/other_user}","gists_url":"https://api.github.com/users/mossid/gists{/gist_id}","starred_url":"https://api.github.com/users/mossid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mossid/subscriptions","organizations_url":"https://api.github.com/users/mossid/orgs","repos_url":"https://api.github.com/users/mossid/repos","events_url":"https://api.github.com/users/mossid/events{/privacy}","received_events_url":"https://api.github.com/users/mossid/received_events","type":"User","site_admin":false},"labels":[{"id":965477209,"node_id":"MDU6TGFiZWw5NjU0NzcyMDk=","url":"https://api.github.com/repos/cosmos/cosmos-sdk/labels/ready-for-review","name":"ready-for-review","color":"e6fad2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-15T05:58:21Z","updated_at":"2018-07-31T11:10:25Z","closed_at":"2018-07-14T00:12:24Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cosmos/cosmos-sdk/pulls/1265","html_url":"https://github.com/cosmos/cosmos-sdk/pull/1265","diff_url":"https://github.com/cosmos/cosmos-sdk/pull/1265.diff","patch_url":"https://github.com/cosmos/cosmos-sdk/pull/1265.patch"},"body":"<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ \r\nv                               ✰  Thanks for creating a PR! ✰    \r\nv    Before smashing the submit button please review the checkboxes. \r\nv    If a checkbox is n/a - please still include it but + a little note why\r\n☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  --> \r\n\r\n* [ ] Updated all relevant documentation in docs\r\n* [x] Updated all code comments where relevant\r\n* [x] Wrote tests\r\n* [ ] Updated CHANGELOG.md\r\n* [x] Updated Gaia/Examples\r\n* [x] Squashed all commits, uses message \"Merge pull request #XYZ: [title]\" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))\r\n\r\nCloses: #1159 \r\nCloses: #1161"},"comment":{"url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/comments/409183506","html_url":"https://github.com/cosmos/cosmos-sdk/pull/1265#issuecomment-409183506","issue_url":"https://api.github.com/repos/cosmos/cosmos-sdk/issues/1265","id":409183506,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTE4MzUwNg==","user":{"login":"HaoyangLiu","id":2945006,"node_id":"MDQ6VXNlcjI5NDUwMDY=","avatar_url":"https://avatars0.githubusercontent.com/u/2945006?v=4","gravatar_id":"","url":"https://api.github.com/users/HaoyangLiu","html_url":"https://github.com/HaoyangLiu","followers_url":"https://api.github.com/users/HaoyangLiu/followers","following_url":"https://api.github.com/users/HaoyangLiu/following{/other_user}","gists_url":"https://api.github.com/users/HaoyangLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/HaoyangLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaoyangLiu/subscriptions","organizations_url":"https://api.github.com/users/HaoyangLiu/orgs","repos_url":"https://api.github.com/users/HaoyangLiu/repos","events_url":"https://api.github.com/users/HaoyangLiu/events{/privacy}","received_events_url":"https://api.github.com/users/HaoyangLiu/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T11:10:25Z","updated_at":"2018-07-31T11:10:25Z","author_association":"NONE","body":"@mossid \r\nHow about add the two methods in getter: GetRawIterator and GetRawReverseIterator?\r\n```\r\nfunc (k Getter) GetRawIterator(ctx sdk.Context, start, end string) (iterator dbm.Iterator, err error) {\r\n\tstore := ctx.KVStore(k.k.key)\r\n\titerator = store.Iterator([]byte(start),[]byte(end))\r\n\treturn\r\n}\r\n\r\nfunc (k Getter) GetRawReverseIterator(ctx sdk.Context, start, end string) (iterator dbm.Iterator, err error) {\r\n\tstore := ctx.KVStore(k.k.key)\r\n\titerator = store.ReverseIterator([]byte(start),[]byte(end))\r\n\treturn\r\n}\r\n```\r\nI think they are much helpful in query a set of keys."}}
{"actor":{"display_login":"HaoyangLiu"}}