kleros/kleros-v2

View on GitHub
kleros-sdk/config/v2-disputetemplate/reality/example4/DisputeMappings.json.mustache

Summary

Maintainability
Test Coverage
[
    {
        "type": "graphql",
        "endpoint": "https://api.thegraph.com/subgraphs/name/kemuru/escrow-v2-devnet",
        "query": "query GetTransaction($transactionId: ID!) { escrow(id: $transactionId) { transactionUri buyer seller amount asset deadline } }",
        "variables": {
            "transactionId": "{{externalDisputeID}}"
        },
        "seek": [
            "escrow.transactionUri",
            "escrow.buyer",
            "escrow.seller",
            "escrow.amount",
            "escrow.asset",
            "escrow.deadline"
        ],
        "populate": [
            "transactionUri",
            "address",
            "sendingRecipientAddress",
            "amount",
            "asset",
            "deadline"
        ]
    },
    {
        "type": "fetch/ipfs/json",
        "ipfsUri": "{{transactionUri}}",
        "seek": [
            "title",
            "description",
            "extraDescriptionUri"
        ],
        "populate": [
            "escrowTitle",
            "deliverableText",
            "extraDescriptionUri"
        ]
    }
]