Skip to content

Build: Completed Bank Card Payment Validator#31

Open
emmaodia wants to merge 5 commits intoiExecBlockchainComputing:masterfrom
emmaodia:master
Open

Build: Completed Bank Card Payment Validator#31
emmaodia wants to merge 5 commits intoiExecBlockchainComputing:masterfrom
emmaodia:master

Conversation

@emmaodia
Copy link

@emmaodia emmaodia commented Oct 5, 2019

No description provided.

@emmaodia
Copy link
Author

@sulliwane Kindly review my PR. Thanks.


// dwolla api key
const APIKEY = process.env.DWOLLA_APP_KEY;
const SECRET = process.env.DWOLLA_APP_SECRET
Copy link
Contributor

@Amxx Amxx Oct 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these envvar coming from? I don't see them set anywhere. Should they come from a dataset? You cannot expect the worker to have them "by default"

throw new Error(results.error);
}

.then(res => const response = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this then isn't attached to anything.

request: {
type: 'GET',
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these values (amount, correlationId, request) used? This is confusing

}
} );

var iexeccallback = ethers.utils.defaultAbiCoder.encode(['uint256', 'string', 'uint256'], [timestamp, details, value]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are following the same format as the pricefeed, but I don't see any of the variables timestamp, details, value being set anywhere. Shouldn't this be changed to consider the results of the dwolla call?

* TOOLS *
*****************************************************************************/

const Client = require("dwolla-v2").Client;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is dwolla-v2 available? I don't see it being installed in the dockerfile.

Copy link
Contributor

@Amxx Amxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App code is mostly clean, but I fell like this is probably not working:

  • JS Packages are not installed in the dockerfile
  • Envvar are not set (might require a dataset)
  • Output format is not capturing the response provided by the Web2 api.

Also, no smart contract is present to show how this can be processed onchain. There is no link to any run of this app on kovan. Was it tested at all?

It's a good first step, but it's not yet ready.

@emmaodia
Copy link
Author

App code is mostly clean, but I fell like this is probably not working:

  • JS Packages are not installed in the dockerfile
  • Envvar are not set (might require a dataset)
  • Output format is not capturing the response provided by the Web2 api.

Also, no smart contract is present to show how this can be processed onchain. There is no link to any run of this app on kovan. Was it tested at all?

It's a good first step, but it's not yet ready.

Thank you @Amxx for the review. I will work on the changes you suggested.
The env vars will use dotenv to be served up so as not to expose private credentials to the public.

@sulliwane
Copy link
Contributor

@emmaodia Hey! We will close the bounties end of this week. If you want to have a chance to win, please fix the issues raised by the reviewer! Thanks!

@emmaodia
Copy link
Author

emmaodia commented Nov 6, 2019

Update made: emmaodia@e64158d

@Amxx @sulliwane Thank you.

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