Skip to content

Commit

Permalink
add 712 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienlacombe committed Nov 15, 2023
1 parent 4076615 commit 8f73649
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions polygon/eip712.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"blockchainName": {
"enum": [
"polygon"
]
},
"chainId": {
"enum": [
137
]
},
"contracts": {
"items": {
"properties": {
"address": {
"pattern": "^0x[a-z0-9]{40}$",
"type": "string"
},
"contractName": {
"type": "string"
},
"messages": {
"items": {
"additionalProperties": false,
"properties": {
"mapper": {
"additionalProperties": false,
"properties": {
"fields": {
"items": {
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"path",
"label"
],
"type": "object"
},
"type": "array"
},
"label": {
"type": "string"
}
},
"required": [
"label",
"fields"
],
"type": "object"
},
"schema": {
"type": "object"
}
},
"required": [
"schema",
"mapper"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"address",
"contractName",
"messages"
],
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"required": [
"blockchainName",
"contracts",
"name",
"chainId"
],
"type": "object"
}

0 comments on commit 8f73649

Please sign in to comment.