{"action":"created","issue":{"url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/229","repository_url":"https://api.github.com/repos/oysterprotocol/brokernode","labels_url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/229/comments","events_url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/229/events","html_url":"https://github.com/oysterprotocol/brokernode/issues/229","id":314680870,"number":229,"title":"[Broker] Claim treasure (verify PoW)","user":{"login":"AaronVasquez","id":1048612,"avatar_url":"https://avatars1.githubusercontent.com/u/1048612?v=4","gravatar_id":"","url":"https://api.github.com/users/AaronVasquez","html_url":"https://github.com/AaronVasquez","followers_url":"https://api.github.com/users/AaronVasquez/followers","following_url":"https://api.github.com/users/AaronVasquez/following{/other_user}","gists_url":"https://api.github.com/users/AaronVasquez/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronVasquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronVasquez/subscriptions","organizations_url":"https://api.github.com/users/AaronVasquez/orgs","repos_url":"https://api.github.com/users/AaronVasquez/repos","events_url":"https://api.github.com/users/AaronVasquez/events{/privacy}","received_events_url":"https://api.github.com/users/AaronVasquez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tenisakb","id":7314503,"avatar_url":"https://avatars1.githubusercontent.com/u/7314503?v=4","gravatar_id":"","url":"https://api.github.com/users/tenisakb","html_url":"https://github.com/tenisakb","followers_url":"https://api.github.com/users/tenisakb/followers","following_url":"https://api.github.com/users/tenisakb/following{/other_user}","gists_url":"https://api.github.com/users/tenisakb/gists{/gist_id}","starred_url":"https://api.github.com/users/tenisakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenisakb/subscriptions","organizations_url":"https://api.github.com/users/tenisakb/orgs","repos_url":"https://api.github.com/users/tenisakb/repos","events_url":"https://api.github.com/users/tenisakb/events{/privacy}","received_events_url":"https://api.github.com/users/tenisakb/received_events","type":"User","site_admin":false},"assignees":[{"login":"tenisakb","id":7314503,"avatar_url":"https://avatars1.githubusercontent.com/u/7314503?v=4","gravatar_id":"","url":"https://api.github.com/users/tenisakb","html_url":"https://github.com/tenisakb","followers_url":"https://api.github.com/users/tenisakb/followers","following_url":"https://api.github.com/users/tenisakb/following{/other_user}","gists_url":"https://api.github.com/users/tenisakb/gists{/gist_id}","starred_url":"https://api.github.com/users/tenisakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenisakb/subscriptions","organizations_url":"https://api.github.com/users/tenisakb/orgs","repos_url":"https://api.github.com/users/tenisakb/repos","events_url":"https://api.github.com/users/tenisakb/events{/privacy}","received_events_url":"https://api.github.com/users/tenisakb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-16T14:40:54Z","updated_at":"2018-04-19T12:41:33Z","closed_at":null,"author_association":"MEMBER","body":"Create a new endpoint on the broker:\r\n`POST /api/v1/treasures`\r\n```js\r\n// POST body\r\n{\r\n    receiverEthAddr: \"0xThisIsTheWebsiteOwnersAddr\"\r\n    treasure: {\r\n        genesisHash: \"genesisHash\",\r\n        sectorIdx: 123,\r\n        ethAddr: \"ethAddr\",\r\n        ethKey: \"0xSuperSecretKey\",\r\n    }\r\n}\r\n```\r\n\r\n1. Broker needs to verify that all PoW has been done\r\n    1. Check that the chunk has been attached recently\r\n2. After verification, call `claim()` on smart contract.\r\n    1. https://github.com/oysterprotocol/smartcontract/blob/master/OysterPearl.sol#L228\r\n    2. The broker will provide the gas needed from its own ETH wallet\r\n"},"comment":{"url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/comments/382719231","html_url":"https://github.com/oysterprotocol/brokernode/issues/229#issuecomment-382719231","issue_url":"https://api.github.com/repos/oysterprotocol/brokernode/issues/229","id":382719231,"user":{"login":"AaronVasquez","id":1048612,"avatar_url":"https://avatars1.githubusercontent.com/u/1048612?v=4","gravatar_id":"","url":"https://api.github.com/users/AaronVasquez","html_url":"https://github.com/AaronVasquez","followers_url":"https://api.github.com/users/AaronVasquez/followers","following_url":"https://api.github.com/users/AaronVasquez/following{/other_user}","gists_url":"https://api.github.com/users/AaronVasquez/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronVasquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronVasquez/subscriptions","organizations_url":"https://api.github.com/users/AaronVasquez/orgs","repos_url":"https://api.github.com/users/AaronVasquez/repos","events_url":"https://api.github.com/users/AaronVasquez/events{/privacy}","received_events_url":"https://api.github.com/users/AaronVasquez/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T12:41:33Z","updated_at":"2018-04-19T12:41:33Z","author_association":"MEMBER","body":"@tenisakb I'm re-assigning this to you. If you have questions about interacting with the smart contract, please ask @Astor. He is working on setting up the ethereum client on the broker."}}
{"actor":{"display_login":"AaronVasquez"}}