diff options
author | Kadinsky <kandinsky454@protonmail.ch> | 2018-10-18 02:01:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 02:01:29 +0800 |
commit | 5ec4b27200297708298deca97603849a37b2f66a (patch) | |
tree | 96c28898329c3bf786a08549384f2de79d0903f8 /packages/json-schemas/schemas/eip712_typed_data_schema.json | |
parent | b2012bf1610eda65afe180b04df6c9ee8f5dc659 (diff) | |
parent | bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295 (diff) | |
download | dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.gz dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.bz2 dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.lz dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.xz dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.zst dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.zip |
Merge pull request #1145 from 0xProject/refactorSchemasToJSON
Move json-schema schemas to JSON files
Diffstat (limited to 'packages/json-schemas/schemas/eip712_typed_data_schema.json')
-rw-r--r-- | packages/json-schemas/schemas/eip712_typed_data_schema.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/eip712_typed_data_schema.json b/packages/json-schemas/schemas/eip712_typed_data_schema.json new file mode 100644 index 000000000..8efd6de44 --- /dev/null +++ b/packages/json-schemas/schemas/eip712_typed_data_schema.json @@ -0,0 +1,28 @@ +{ + "id": "/eip712TypedDataSchema", + "type": "object", + "properties": { + "types": { + "type": "object", + "properties": { + "EIP712Domain": { "type": "array" } + }, + "additionalProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "type": { "type": "string" } + }, + "required": ["name", "type"] + } + }, + "required": ["EIP712Domain"] + }, + "primaryType": { "type": "string" }, + "domain": { "type": "object" }, + "message": { "type": "object" } + }, + "required": ["types", "primaryType", "domain", "message"] +} |