aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/basic_type_schemas.ts
blob: 8430b6f4a5005a2deea57c6a68a589ca4382086d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export const addressSchema = {
    id: '/Address',
    type: 'string',
    pattern: '^0x[0-9a-f]{40}$',
};

export const hexSchema = {
    id: '/Hex',
    type: 'string',
    pattern: '^0x[0-9a-f]',
};

export const numberSchema = {
    id: '/Number',
    type: 'string',
    pattern: '^\\d+(\\.\\d+)?$',
};