aboutsummaryrefslogblamecommitdiffstats
path: root/packages/sol-compiler/src/schemas/compiler_options_schema.ts
blob: 43a9c0879849b52dc8e05313f42a19125f5d76a4 (plain) (tree)

























                                                               
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,
};