-
Notifications
You must be signed in to change notification settings - Fork 6
feat(Escrow): add custom buyer to universal contract #121
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
Conversation
✅ Deploy Preview for kleros-escrow-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughThis change removes the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Caller
participant EscrowUniversal as EscrowUniversal Contract
Caller->>EscrowUniversal: createNativeTransaction(_deadline, _transactionUri, _buyer, _seller)
EscrowUniversal->>EscrowUniversal: Store transaction with explicit _buyer and _seller
EscrowUniversal-->>Caller: Return transactionID
Caller->>EscrowUniversal: createERC20Transaction(_amount, _token, _deadline, _transactionUri, _buyer, _seller)
EscrowUniversal->>EscrowUniversal: Transfer tokens, store transaction with _buyer and _seller
EscrowUniversal-->>Caller: Return transactionID
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Redo of #117 to make custom buyer the default implementation.
In addition there is a fix for the
externalDisputeID
to be computed from thehash(contract address, txID)
to avoid collision between deployments.PR-Codex overview
This PR focuses on the removal of the
EscrowCustomBuyer
contract and related files, along with updates to theEscrowUniversal
contract to accommodate changes in transaction creation, specifically allowing custom buyers.Detailed summary
EscrowCustomBuyer.sol
,EscrowCustomBuyer.t.sol
, and related deployment files.subgraph.yaml
with new address and start block forEscrowUniversal
.IEscrow
interface to include_buyer
parameter in transaction functions.EscrowUniversal
to use_buyer
instead ofmsg.sender
for transactions.EscrowUniversalTest
to reflect changes in transaction creation with custom buyers.package.json
to2.2.0
.Summary by CodeRabbit
Improvements
Bug Fixes
Tests
Chores