aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/eip712_typed_data.ts
blob: 4c4664878cd06e26ac2b040ae4aebbdb9afc6f3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'],
};