diff options
Diffstat (limited to 'packages/website/ts/schemas')
-rw-r--r-- | packages/website/ts/schemas/metadata_schema.ts | 9 | ||||
-rw-r--r-- | packages/website/ts/schemas/portal_order_schema.ts | 9 | ||||
-rw-r--r-- | packages/website/ts/schemas/portal_token_metadata.ts | 10 | ||||
-rw-r--r-- | packages/website/ts/schemas/validator.ts | 11 |
4 files changed, 0 insertions, 39 deletions
diff --git a/packages/website/ts/schemas/metadata_schema.ts b/packages/website/ts/schemas/metadata_schema.ts deleted file mode 100644 index cd4045d10..000000000 --- a/packages/website/ts/schemas/metadata_schema.ts +++ /dev/null @@ -1,9 +0,0 @@ -export const orderMetadataSchema = { - id: '/OrderMetadata', - properties: { - makerToken: { $ref: '/PortalTokenMetadata' }, - takerToken: { $ref: '/PortalTokenMetadata' }, - }, - required: ['makerToken', 'takerToken'], - type: 'object', -}; diff --git a/packages/website/ts/schemas/portal_order_schema.ts b/packages/website/ts/schemas/portal_order_schema.ts deleted file mode 100644 index 15e61f5e4..000000000 --- a/packages/website/ts/schemas/portal_order_schema.ts +++ /dev/null @@ -1,9 +0,0 @@ -export const portalOrderSchema = { - id: '/PortalOrder', - properties: { - signedOrder: { $ref: '/signedOrderSchema' }, - metadata: { $ref: '/OrderMetadata' }, - }, - required: ['signedOrder', 'metadata'], - type: 'object', -}; diff --git a/packages/website/ts/schemas/portal_token_metadata.ts b/packages/website/ts/schemas/portal_token_metadata.ts deleted file mode 100644 index 0455c2ac1..000000000 --- a/packages/website/ts/schemas/portal_token_metadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const portalTokenMetadataSchema = { - id: '/PortalTokenMetadata', - properties: { - name: { type: 'string' }, - symbol: { type: 'string' }, - decimals: { type: 'number' }, - }, - required: ['name', 'symbol', 'decimals'], - type: 'object', -}; diff --git a/packages/website/ts/schemas/validator.ts b/packages/website/ts/schemas/validator.ts deleted file mode 100644 index 128d943e1..000000000 --- a/packages/website/ts/schemas/validator.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { SchemaValidator } from '@0x/json-schemas'; -import { orderMetadataSchema } from 'ts/schemas/metadata_schema'; -import { portalOrderSchema } from 'ts/schemas/portal_order_schema'; -import { portalTokenMetadataSchema } from 'ts/schemas/portal_token_metadata'; - -const validator = new SchemaValidator(); -validator.addSchema(portalTokenMetadataSchema); -validator.addSchema(orderMetadataSchema); -validator.addSchema(portalOrderSchema); - -export { validator }; |