Open jaybuidl opened 6 months ago
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"]
}
]
Blocked by https://github.com/kleros/kleros-v2/issues/1082, https://github.com/kleros/kleros-v2/issues/1083, https://github.com/kleros/kleros-v2/issues/1111 Relates to https://github.com/kleros/kleros-v2/issues/1353
Draft Specification
disputeDetails.jsonc
mappings.jsonc