This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move json_schemas to its own package (#1435)
* Move zero_ex.json_schemas to its own package * Support ALL the schemas * Stop installing packages as editable * HACK: cp files because CircleCI isn't * Add example usage to sra_client README * Tweak special case: only strip Schema as suffix * Correct doc titles * Clarify what kind of support ticket was raised. * Correct inconsistencies in JSON schema names In both ref ID's and file names. * Add entry point for validation of JSON strings
- Loading branch information
Showing
45 changed files
with
565 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/json-schemas/schemas/asset_pairs_request_opts_schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"id": "/ECSignature", | ||
"id": "/ecSignatureSchema", | ||
"properties": { | ||
"v": { | ||
"type": "number", | ||
|
2 changes: 1 addition & 1 deletion
2
packages/json-schemas/schemas/js_number.json → ...son-schemas/schemas/js_number_schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"id": "/jsNumber", | ||
"id": "/jsNumberSchema", | ||
"type": "number", | ||
"minimum": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"id": "/OrderBookRequest", | ||
"id": "/OrderbookRequestSchema", | ||
"type": "object", | ||
"properties": { | ||
"baseAssetData": { "$ref": "/hexSchema" }, | ||
"quoteAssetData": { "$ref": "/hexSchema" } | ||
}, | ||
"required": ["baseAssetData", "quoteAssetData"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"domain": "0x-json-schemas-py", | ||
"build_command": "python setup.py build_sphinx", | ||
"upload_directory": "build/docs/html", | ||
"index_key": "index.html", | ||
"error_key": "index.html", | ||
"trailing_slashes": true, | ||
"cache": 3600, | ||
"aws_profile": "default", | ||
"aws_region": "us-east-1", | ||
"cdn": false, | ||
"dns_configured": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[MESSAGES CONTROL] | ||
disable=C0330,line-too-long,fixme,too-few-public-methods,too-many-ancestors | ||
# C0330 is "bad hanging indent". we use indents per `black`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## 0x-json-schemas | ||
|
||
0x JSON schemas for those developing on top of 0x protocol. | ||
|
||
Read the [documentation](http://0x-json-schemas-py.s3-website-us-east-1.amazonaws.com/) | ||
|
||
## Installing | ||
|
||
```bash | ||
pip install 0x-json-schemas | ||
``` | ||
|
||
## Contributing | ||
|
||
We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository. | ||
|
||
Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started. | ||
|
||
### Install Code and Dependencies | ||
|
||
Ensure that you have installed Python >=3.6 and Docker. Then: | ||
|
||
```bash | ||
pip install -e .[dev] | ||
``` | ||
|
||
### Test | ||
|
||
Tests depend on a running ganache instance with the 0x contracts deployed in it. For convenience, a docker container is provided that has ganache-cli and a snapshot containing the necessary contracts. A shortcut is provided to run that docker container: `./setup.py ganache`. With that running, the tests can be run with `./setup.py test`. | ||
|
||
### Clean | ||
|
||
`./setup.py clean --all` | ||
|
||
### Lint | ||
|
||
`./setup.py lint` | ||
|
||
### Build Documentation | ||
|
||
`./setup.py build_sphinx` | ||
|
||
### More | ||
|
||
See `./setup.py --help-commands` for more info. |
Oops, something went wrong.