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

Feature/escrow_payments #828

Open
wants to merge 9 commits into
base: feature/docker_refactor
Choose a base branch
from

Conversation

alexcos20
Copy link
Member

@alexcos20 alexcos20 commented Jan 30, 2025

Changes proposed in this PR:

  • remove OPF_k8
  • add escrow payments
  • update interfaces for paid Compute Jobs (BREAKING CHANGES)

How to use:

  • start barge with
export CONTRACTS_VERSION=escrow
./start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense

Nice TODOs (can be done later):

  • more tests for lock/claim
  • docs

@alexcos20 alexcos20 linked an issue Jan 30, 2025 that may be closed by this pull request
@alexcos20 alexcos20 marked this pull request as ready for review February 5, 2025 06:55
Copy link
Member

@mariacarmina mariacarmina left a 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)
Copy link
Member

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)
Copy link
Member

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.

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.

Escrow integration
2 participants