{
    "$schema": "./erc7730-v2.schema.json",

    "$comment": "This is an example of ERC-7730 display definition for an ERC-20 token contract, intended as an interface definition to be included in other files.",

    "display": {
        "formats": {
            "approve(address spender,uint256 value)": {
                "intent": "Approve",
                "interpolatedIntent": "Approve {spender} to spend {value}",
                "fields": [
                    {
                        "path": "spender",
                        "label": "Spender",
                        "format": "addressName"
                    },
                    {
                        "path": "value",
                        "label": "Amount",
                        "format": "tokenAmount",
                        "params": {
                            "tokenPath": "@.to"
                        }
                    }
                ]
            }
        }
    }
}
