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

Feat/trustless work integration #178

Merged

Conversation

armandocodecr
Copy link
Contributor

@armandocodecr armandocodecr commented Feb 27, 2025

Pull Request for SafeTrust - Close Issue

Pull Request Information

I implemented the use of the trustless work api to create an escrow (contract) with its corresponding properties and consequently melt the escrow.

🌀 Summary of Changes

  • Created the necessary axios configuration to use the trustless work api
  • Created trustless work interfaces
  • Created a service file to export all the functions that make use of the trustless work api
  • I made use of the trustless work api inside the page “/dashboard/hotel/payment”.

Important note: In the object to initialize the escrow I placed a default address in the following fields: serviceProvider, platformAddress, disputeResolver, releaseSigner.
This is because these addresses must be chosen by yourselves according to their use.

🛠 Testing

Evidence

Note: In the video I transferred only 10.5 USDC (which is the value of the tax) as my account did not have enough funds to transfer the full amount. But this was only for the video I needed to record as evidence.

📂 Related Issue

This pull request will close #174 upon merging.


Make sure to follow the Git Guidelines for Atomic Commits and read Contributing Guide

The Pull request needs to have the format mentioned below in the Git Guideline

🎉 Thank you for reviewing this PR! 🎉

Copy link
Contributor

@zleypner zleypner left a comment

Choose a reason for hiding this comment

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

Great work @armandocodecr . Sir thank you for your contribution!

@zleypner zleypner merged commit 79d3fe6 into safetrustcr:develop Mar 1, 2025
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.

[FEAT]: Integrate the TW api with SafeTrust [initialize and fund escrow endpoint]
2 participants