aboutsummaryrefslogblamecommitdiffstats
path: root/packages/json-schemas/schemas/basic_type_schemas.ts
blob: 031383a11c00c6c047c23f91abadd6b51d41094e (plain) (tree)
1
2
3
4
5
6
7
8
9
                              
                         



                                
                          
                     
                   
                                       

  
                             
                        


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

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

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