diff options
author | Jacob Evans <jacob@dekz.net> | 2018-10-01 18:37:13 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-10-05 09:59:24 +0800 |
commit | adcfaa2e80389f69e196b602955cee858a1eb40f (patch) | |
tree | d97a4c65982f5062ef70d357b6bad1181dec0292 /packages/json-schemas/schemas | |
parent | 119f8c94495a15ef43298a77abc87fb9d33b4bb3 (diff) | |
download | dexon-0x-contracts-adcfaa2e80389f69e196b602955cee858a1eb40f.tar.gz dexon-0x-contracts-adcfaa2e80389f69e196b602955cee858a1eb40f.tar.zst dexon-0x-contracts-adcfaa2e80389f69e196b602955cee858a1eb40f.zip |
Expose eth_signTypedData functionality for order signing
Diffstat (limited to 'packages/json-schemas/schemas')
-rw-r--r-- | packages/json-schemas/schemas/eip712_typed_data.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/eip712_typed_data.ts b/packages/json-schemas/schemas/eip712_typed_data.ts new file mode 100644 index 000000000..4c4664878 --- /dev/null +++ b/packages/json-schemas/schemas/eip712_typed_data.ts @@ -0,0 +1,28 @@ +export const eip712TypedData = { + id: 'eip712TypedData', + 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'], +}; |