Raw schema
{
"type": "object",
"properties": {
"chain_id": {
"type": "integer",
"const": 1
},
"token_standard": {
"type": "string",
"enum": [
"erc20",
"erc721",
"erc1155"
]
},
"transaction": {
"type": "object",
"additionalProperties": false,
"required": [
"to",
"data",
"value"
],
"properties": {
"to": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"from": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"data": {
"type": "string",
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"maxLength": 8194
},
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)$",
"maxLength": 78
}
}
},
"expectations": {
"type": "object",
"additionalProperties": false,
"required": [
"contract"
],
"properties": {
"contract": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"caller": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"spender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"recipient": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"source_address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"max_amount_raw": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)$",
"maxLength": 78,
"description": "Maximum in raw integer base units, NOT human token units"
},
"token_id": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)$",
"maxLength": 78
},
"allow_operator_all": {
"type": "boolean",
"const": false
}
}
}
},
"required": [
"chain_id",
"token_standard",
"transaction",
"expectations"
],
"additionalProperties": false
}