Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Soccer Live Scores #17

Merged
merged 3 commits into from
Sep 6, 2019
Merged

Conversation

erazhu31
Copy link
Contributor

Add Soccer Live Scores

@Amxx
Copy link
Member

Amxx commented Jul 31, 2019

Hi @erazhu31,

Thanks for submitting your pull request. Sorry for the delay reviewing it, we were all pretty busy these days.

So I looked at your code, and here is my feedback:

  1. Dont leave fragments of http query in the variables (APIKEY) https://github.com/iExecBlockchainComputing/iexec-apps/pull/17/files#diff-f98a4099c66131dd9736b27422b0b496R15 [MUST BE FIXED]

  2. Don't just encode the JSON response to send it back to the contracts. You have to parse it, extract whatever is meaningful and encode it in the app. The smart contract has to be able to decode it and extract meaningful info from it (for instance, each team’s score should be encoded as an integer using ABIencode) https://github.com/iExecBlockchainComputing/iexec-apps/pull/17/files#diff-f98a4099c66131dd9736b27422b0b496R74 [MUST BE FIXED]

  3. Add a readme that explains what the app does, and how it works (here is an example) [MUST BE FIXED]

  4. Avoid duplicated files (ex: SoccerLiveScores/src/oracle.js & SoccerLiveScores/oracle.js) [NICE TO FIX]

  5. Indentation consistency (ex: https://github.com/iExecBlockchainComputing/iexec-apps/pull/17/files#diff-f98a4099c66131dd9736b27422b0b496R74) [NICE TO FIX]

  6. Rename the smart contract and modify it to store meaningful results that can be processed onchain. https://github.com/iExecBlockchainComputing/iexec-apps/pull/17/files#diff-27ecb2f393d7af6d4f1b610043a81b8eR7 [MUST BE FIXED]

Please let me know if anything isn’t clear!
As soon as these are fixed, the bounty is yours.
Best,
Hadrien

@erazhu31
Copy link
Contributor Author

erazhu31 commented Aug 2, 2019

Hello
just commit with all fix

/* deploy app*/
✔ Deployed new app at address 0x23d365a8A73B49b0becA2C2aa6600d53c843DF31
app:0xC8dEE26645D4b25DFCbA81F182D5d10eA263bc2A

/* contract solidity*/
LiveScoreOracle deployed at address: 0x77065EAb413D1D128CcE48390b32Fb6537CDD5b6

thanks

@sulliwane sulliwane merged commit 03b9c52 into iExecBlockchainComputing:master Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants