aboutsummaryrefslogblamecommitdiffstats
path: root/packages/website/ts/schemas/order_schema.ts
blob: e69891df1bd053d7ac45efb32bbfcaf71b527da4 (plain) (tree)
1
2
3
4
5
6
7
8
9


                            

                                       

                                     
                                 
                                                
                                                       
                                         
                                                    
                                      
      


                

                   
               
                      

                                     
                                  

                    

                   
export const orderSchema = {
    id: '/Order',
    properties: {
        maker: { $ref: '/OrderTaker' },
        taker: { $ref: '/OrderTaker' },
        makerFee: { type: 'string' },
        takerFee: { type: 'string' },
        salt: { type: 'string' },
        ecSignature: { $ref: '/SignatureData' },
        expirationUnixTimestampSec: { type: 'string' },
        feeRecipient: { type: 'string' },
        exchangeContractAddress: { type: 'string' },
        networkId: { type: 'number' },
    },
    required: [
        'maker',
        'taker',
        'makerFee',
        'takerFee',
        'salt',
        'ecSignature',
        'expirationUnixTimestampSec',
        'feeRecipient',
        'exchangeContractAddress',
        'networkId',
    ],
    type: 'object',
};