-
Notifications
You must be signed in to change notification settings - Fork 4
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
Escrow dispute template and mappings #12
Labels
Comments
LATEST ESCROW V2 TEMPLATE AND DATA MAPPINGS AS OF 25th June 2024: externalDisputeID: 0 template: {
"$schema": "../NewDisputeTemplate.schema.json",
"title": "Escrow dispute: {{escrowTitle}}",
"description": "{{deliverableText}}",
"question": "Which party abided by the terms of the contract?",
"answers": [
{
"title": "Refund the Buyer",
"description": "Select this to return the funds to the Buyer."
},
{
"title": "Pay the Seller",
"description": "Select this to release the funds to the Seller."
}
],
"policyURI": "/ipfs/XxxxxXXX/escrow-general-policy.pdf",
"attachment": {
"label": "Transaction Terms",
"uri": "{{{extraDescriptionUri}}}"
},
"frontendUrl": "https://escrow-v2.kleros.builders/#/transactions/{{externalDisputeID}}",
"arbitrableChainID": "421614",
"arbitrableAddress": "0x??",
"arbitratorChainID": "421614",
"arbitratorAddress": "0x??",
"metadata": {
"buyer": "{{buyer}}",
"seller": "{{seller}}",
"amount": "{{amount}}",
"token": "{{token}}",
"deadline": "{{deadline}}",
"transactionUri": "{{{transactionUri}}}"
},
"category": "Escrow",
"specification": "KIPXXX",
"aliases": {
"Buyer": "{{buyer}}",
"Seller": "{{seller}}"
},
"version": "1.0"
} data mappings: [
{
"type": "graphql",
"endpoint": "https://api.studio.thegraph.com/query/61738/escrow-v2-devnet/version/latest",
"query": "query GetTransaction($transactionId: ID!) { escrow(id: $transactionId) { transactionUri buyer seller amount token deadline } }",
"variables": {
"transactionId": "{{externalDisputeID}}"
},
"seek": ["escrow.transactionUri", "escrow.buyer", "escrow.seller", "escrow.amount", "escrow.token", "escrow.deadline"],
"populate": ["transactionUri", "buyer", "seller", "amount", "token", "deadline"]
},
{
"type": "fetch/ipfs/json",
"ipfsUri": "{{{transactionUri}}}",
"seek": ["title", "description", "extraDescriptionUri"],
"populate": ["escrowTitle", "deliverableText", "extraDescriptionUri"]
}
] |
This was referenced Jun 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Blocked by kleros/kleros-v2#1082, kleros/kleros-v2#1083, kleros/kleros-v2#1111
Relates to kleros/kleros-v2#1353
Draft Specification
disputeDetails.jsonc
mappings.jsonc
The text was updated successfully, but these errors were encountered: