From c35f78ce10be66a87f3948fe9cf95ca17995ff66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Sant=C3=A1ngelo?= Date: Fri, 19 Feb 2021 14:23:36 -0300 Subject: [PATCH] feat: update schema --- api-extractor.json | 4 ++-- report/schemas.api.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/api-extractor.json b/api-extractor.json index 25d4ee7c..68d83e0a 100644 --- a/api-extractor.json +++ b/api-extractor.json @@ -96,7 +96,7 @@ * * DEFAULT VALUE: false */ - "skipLibCheck": true, + "skipLibCheck": true }, /** * Configures how the API report file (*.api.md) will be generated. @@ -129,7 +129,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/etc/" */ - "reportFolder": "/report/", + "reportFolder": "/report/" /** * Specifies the folder where the temporary report file is written. The file name portion is determined by * the "reportFileName" setting. diff --git a/report/schemas.api.md b/report/schemas.api.md index fe93b5b6..8f24a8d9 100644 --- a/report/schemas.api.md +++ b/report/schemas.api.md @@ -16,6 +16,32 @@ export type AbstractTypedSchema = { export { Ajv } +// @alpha +export enum ChainId { + // (undocumented) + ETHEREUM_GOERLI = 5, + // (undocumented) + ETHEREUM_KOVAN = 42, + // (undocumented) + ETHEREUM_MAINNET = 1, + // (undocumented) + ETHEREUM_RINKEBY = 4, + // (undocumented) + ETHEREUM_ROPSTEN = 3, + // (undocumented) + MATIC_MAINNET = 89, + // (undocumented) + MATIC_MUMBAI = 13881 +} + +// @alpha (undocumented) +export namespace ChainId { + const // (undocumented) + schema: JSONSchema; + const // (undocumented) + validate: ValidateFunction; +} + // @public export function generateValidator(schema: JSONSchema): ValidateFunction; @@ -36,6 +62,22 @@ export namespace MetaTransaction { validate: ValidateFunction; } +// @alpha +export enum Network { + // (undocumented) + ETHEREUM = "ETHEREUM", + // (undocumented) + MATIC = "MATIC" +} + +// @alpha (undocumented) +export namespace Network { + const // (undocumented) + schema: JSONSchema; + const // (undocumented) + validate: ValidateFunction; +} + export { ValidateFunction } // @public