aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas/token_schema.ts
blob: 1236e07c1c768dd3fd83febbda115ac749293a0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export const tokenSchema = {
    id: '/token',
    properties: {
        name: {type: 'string'},
        symbol: {type: 'string'},
        decimals: {type: 'number'},
        address: {$ref: '/addressSchema'},
        url: {
            oneOf: [
                {
                    type: 'string',
                    format: 'uri',
                },
                {
                    enum: [''],
                },
            ],
        },
    },
    required: ['name', 'symbol', 'decimals', 'address', 'url'],
    type: 'object',
};