aboutsummaryrefslogblamecommitdiffstats
path: root/packages/sol-compiler/src/schemas/compiler_options_schema.ts
blob: d4d1b60176b580ffd4f65d25deb23c3294c989b0 (plain) (tree)
1
2
3
4
5
6




                                         
                                                                     



















                                             
export const compilerOptionsSchema = {
    id: '/CompilerOptions',
    properties: {
        contractsDir: { type: 'string' },
        artifactsDir: { type: 'string' },
        solcVersion: { type: 'string', pattern: '^\\d+.\\d+.\\d+$' },
        compilerSettings: { type: 'object' },
        contracts: {
            oneOf: [
                {
                    type: 'string',
                    pattern: '^\\*$',
                },
                {
                    type: 'array',
                    items: {
                        type: 'string',
                    },
                },
            ],
        },
    },
    type: 'object',
    required: [],
    additionalProperties: false,
};