Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove re-exports #97

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,048 changes: 103 additions & 4,945 deletions dev-utils/docs/reference.mdx

Large diffs are not rendered by default.

59 changes: 0 additions & 59 deletions dev-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,3 @@ export { env, EnvVars } from './env';
export { callbackErrorReporter } from './callback_error_reporter';
export { chaiSetup } from './chai_setup';
export { tokenUtils } from './token_utils';
export { Web3Wrapper, NodeType } from '@0x/web3-wrapper';
export import Web3ProviderEngine = require('web3-provider-engine');
export { DoneCallback } from '@0x/types';
export { AbiDecoder, DecodedCalldata } from '@0x/utils';
export {
SupportedProvider,
CallData,
GethCallOverrides,
TransactionReceiptWithDecodedLogs,
BlockParam,
TxData,
BlockWithoutTransactionData,
BlockWithTransactionData,
FilterObject,
LogEntry,
Transaction,
TransactionReceipt,
TraceParams,
TransactionTrace,
JSONRPCRequestPayload,
LogTopic,
DecodedLogEntry,
LogEntryEvent,
TransactionReceiptStatus,
StructLog,
TxDataPayable,
BlockParamLiteral,
Web3JsProvider,
GanacheProvider,
EIP1193Provider,
ZeroExProvider,
AbiDefinition,
DecodedLogArgs,
LogWithDecodedArgs,
RawLog,
ContractEventArg,
DecodedLogEntryEvent,
EIP1193Event,
JSONRPCErrorCallback,
OpCode,
FunctionAbi,
EventAbi,
RevertErrorAbi,
Web3JsV1Provider,
Web3JsV2Provider,
Web3JsV3Provider,
EventParameter,
DataItem,
JSONRPCResponsePayload,
MethodAbi,
ConstructorAbi,
FallbackAbi,
ConstructorStateMutability,
TupleDataItem,
JSONRPCResponseError,
StateMutability,
TxAccessList,
TxAccessListWithGas,
} from 'ethereum-types';
8 changes: 7 additions & 1 deletion doc-gen-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"Exclude": true,
"Ajv": true,
"#": "private types below",
"AbstractArtifactAdapter": true,
"CompilerOptions": true,
"DoneCallback": true,
"EIP712TypedData": true,
"ErrorCallback": true,
"JSONRPCErrorCallback": true,
Expand All @@ -30,7 +33,10 @@
"JSONRPCResponsePayload": true,
"MnemonicWalletSubproviderConfigs": true,
"NextCallback": true,
"PartialTxParams": true
"PartialTxParams": true,
"StandardOutput": true,
"Web3ProviderEngine": true,
"Web3Wrapper": true
},
"ignoredExcessiveTypes": [
"NonceSubproviderErrors",
Expand Down
8 changes: 4 additions & 4 deletions json-schemas/docs/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A validator wrapping (AJV) [https://github.com/ajv-validator/ajv]

\+ **new SchemaValidator**(`newSchemas`: object[]): *[SchemaValidator](#class-schemavalidator)*

*Defined in [schema_validator.ts:11](https://github.com/0xProject/tools/blob/c64730cff/json-schemas/src/schema_validator.ts#L11)*
*Defined in [schema_validator.ts:11](https://github.com/0xProject/tools/blob/56e66742a/json-schemas/src/schema_validator.ts#L11)*

Instantiates a SchemaValidator instance

Expand All @@ -27,7 +27,7 @@ Name | Type | Default |

▸ **addSchema**(`schemaObjectOrArray`: object | object[]): *void*

*Defined in [schema_validator.ts:26](https://github.com/0xProject/tools/blob/c64730cff/json-schemas/src/schema_validator.ts#L26)*
*Defined in [schema_validator.ts:26](https://github.com/0xProject/tools/blob/56e66742a/json-schemas/src/schema_validator.ts#L26)*

Add a schema to the validator. All schemas and sub-schemas must be added to
the validator before the `validate` and `isValid` methods can be called with
Expand All @@ -47,7 +47,7 @@ ___

▸ **isValid**(`instance`: any, `schema`: object): *boolean*

*Defined in [schema_validator.ts:59](https://github.com/0xProject/tools/blob/c64730cff/json-schemas/src/schema_validator.ts#L59)*
*Defined in [schema_validator.ts:59](https://github.com/0xProject/tools/blob/56e66742a/json-schemas/src/schema_validator.ts#L59)*

Check whether an instance properly adheres to a JSON schema

Expand All @@ -68,7 +68,7 @@ ___

▸ **validate**(`instance`: any, `schema`: object): *Ajv*

*Defined in [schema_validator.ts:49](https://github.com/0xProject/tools/blob/c64730cff/json-schemas/src/schema_validator.ts#L49)*
*Defined in [schema_validator.ts:49](https://github.com/0xProject/tools/blob/56e66742a/json-schemas/src/schema_validator.ts#L49)*

Validate the JS object conforms to a specific JSON schema

Expand Down
4 changes: 0 additions & 4 deletions json-schemas/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
export { SchemaValidator } from './schema_validator';
export { schemas } from './schemas';
export { Ajv } from 'ajv';
import * as AJV from 'ajv';
export { AJV };
module.exports.AJV = AJV;
Loading