Rewrite lib/trustless-work.ts to match the real Trustless Work API#324
Open
heymide wants to merge 1 commit into
Open
Rewrite lib/trustless-work.ts to match the real Trustless Work API#324heymide wants to merge 1 commit into
heymide wants to merge 1 commit into
Conversation
Author
|
Done, Close: #324 |
Contributor
|
Hello @heymide, could you upload images evidencing the correct functionality please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #306
📝 Updated trustless-work.ts to use the v2 API:
Changes made:
Authentication: Changed from Authorization: Bearer ${apiKey} to x-api-key: apiKey
Endpoints: Replaced old /escrow/* routes with v2 endpoints:
deploy, fund, changeMilestoneStatus, approveMilestones, releaseFunds, update, dispute, resolveDispute, sendTransaction, getEscrowsBySigner, getMultipleEscrowBalance
The base URL remains https://dev.api.trustlesswork.com (testnet). For mainnet, change to https://api.trustlesswork.com.
🛠️ Issue
lib/trustless-work.tsto match the real Trustless Work API #306📖 Description
✅ Changes made
🖼️ Media (screenshots/videos)
📜 Additional Notes