-
Notifications
You must be signed in to change notification settings - Fork 23
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
Build: Completed Bank Card Payment Validator #31
base: master
Are you sure you want to change the base?
Conversation
@sulliwane Kindly review my PR. Thanks. |
|
||
// dwolla api key | ||
const APIKEY = process.env.DWOLLA_APP_KEY; | ||
const SECRET = process.env.DWOLLA_APP_SECRET |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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', | ||
} | ||
} |
There was a problem hiding this comment.
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]); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Thank you @Amxx for the review. I will work on the changes you suggested. |
@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! |
Update made: emmaodia@e64158d @Amxx @sulliwane Thank you. |
Build: TLS Notary DOracle
No description provided.