{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/146","repository_url":"https://api.github.com/repos/ethereum/EIPs","labels_url":"https://api.github.com/repos/ethereum/EIPs/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/EIPs/issues/146/comments","events_url":"https://api.github.com/repos/ethereum/EIPs/issues/146/events","html_url":"https://github.com/ethereum/EIPs/issues/146","id":174726756,"number":146,"title":"EVM opcode: CALLGAS","user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"labels":[{"id":290507063,"url":"https://api.github.com/repos/ethereum/EIPs/labels/EIP","name":"EIP","color":"bfd4f2","default":false},{"id":357820109,"url":"https://api.github.com/repos/ethereum/EIPs/labels/EVM","name":"EVM","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-02T10:16:51Z","updated_at":"2016-11-10T16:51:15Z","closed_at":null,"body":"This is split out of #28.\n### Motivation\n\nTo allow contracts calculate the gas used effectively.\n### Specification\n\nA new opcode, ~~`TXGAS`~~ `CALLGAS` is introduced at `0x3d`. It returns the initial gas allocation for the call. It can be used together with `GAS` (`0x5a`) to calculate the gas left.\n\nNote: this is different to #28 where the opcode `0x5c` was suggested.\n"},"comment":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/comments/259743383","html_url":"https://github.com/ethereum/EIPs/issues/146#issuecomment-259743383","issue_url":"https://api.github.com/repos/ethereum/EIPs/issues/146","id":259743383,"user":{"login":"lastperson","id":6198746,"avatar_url":"https://avatars.githubusercontent.com/u/6198746?v=3","gravatar_id":"","url":"https://api.github.com/users/lastperson","html_url":"https://github.com/lastperson","followers_url":"https://api.github.com/users/lastperson/followers","following_url":"https://api.github.com/users/lastperson/following{/other_user}","gists_url":"https://api.github.com/users/lastperson/gists{/gist_id}","starred_url":"https://api.github.com/users/lastperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lastperson/subscriptions","organizations_url":"https://api.github.com/users/lastperson/orgs","repos_url":"https://api.github.com/users/lastperson/repos","events_url":"https://api.github.com/users/lastperson/events{/privacy}","received_events_url":"https://api.github.com/users/lastperson/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T16:51:15Z","updated_at":"2016-11-10T16:51:15Z","body":"This will only solve part of the issue. We also need CALLREFUND counter that will tell how much gas is gathered for refund (storage cleaning) at this point of time."}}
{"actor":{"display_login":"lastperson"}}