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