-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature/escrow_payments #828
base: feature/docker_refactor
Are you sure you want to change the base?
Conversation
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.
I left some comments, still need to review feesHandler & and test the end2end flow, because it contains many breaking changes.
console.log(env.fees) | ||
for (const fee of env.fees[chainId]) { | ||
console.log(fee) | ||
console.log(fee.feeToken) |
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.
Are these console.logs for debug only? If yes, maybe we can log them using PROVIDER_LOGGER and set the log level to 'debug'. These might help in the future if issues occur.
const signer = blockchain.getSigner() | ||
const contract = await this.getContract(chainId, signer) | ||
try { | ||
return await contract.getAuthorizations(token, payer, payee) |
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.
Those functions, at least most of them are implemented here, when a new ocean.js version will be released, I would say that contract object creation and calling contract function to be replaced with the methods in ocean.js. In ocean.js I can also add the additional checks that you managed to write within ocean-node.
Changes proposed in this PR:
How to use:
export CONTRACTS_VERSION=escrow ./start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense
Nice TODOs (can be done later):