aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/test
Commit message (Collapse)AuthorAgeFilesLines
* Python contract demo, with lots of refactoring (#1485)F. Eugene Aumson2019-01-092-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refine Order for Web3 compat. & add conversions Changed some of the fields in the Order class so that it can be passed to our contracts via Web3. Added conversion utilities so that an Order can be easily converted to and from a JSON-compatible dict (specifically by encoding/decoding the `bytes` fields), to facilitate validation against the JSON schema. Also modified JSON order schema to accept integers in addition to stringified integers. * Fixes for json_schemas Has-types indicator file, py.typed, was not being included in package. Schemas were not being properly gathered into package installation. * Add test/demo of Exchange.getOrderInfo() * web3 bug workaround * Fix problem packaging contract artifacts * Move contract addresses to their own package * Move contract artifacts to their own package * Add scripts to install, test & lint all components * prettierignore files in local python dev env * Correct missing coverage analysis for sra_client * CI cache lint: don't save, re-use from test-python * tag hacks as hacks * correct merge mistake * remove local strip_0x() in favor of eth_utils * remove json schemas from old order_utils location * correct merge mistake * doctest json schemas via command-line, not code
* Move zero_ex.json_schemas to its own packageF. Eugene Aumson2018-12-151-23/+0
|
* feat(order_utils.py): schema resolver cache (#1317)Daniel Pyrathon2018-12-012-2/+26
| | | | | * Implemented basic functionality for using cache layer of LocalRefResolver * Use `importlib` instead of `imp`, since it's been deprecated. Legacy `load_module()` reloads modules even if they are already imported, causing tests to fail when run in non-deterministic ordering, so we replace it with `import_module()`
* fix(order_utils.py): validate order w/json schema (#1260)F. Eugene Aumson2018-11-151-8/+2
|
* feat(order_utils.py): sign_hash() (#1254)F. Eugene Aumson2018-11-143-4/+3
| | | | | | | Also moved is_valid_signature() into main package module, for simplicity. Also consolidated a handul of in-line pylint disable directives into the .pylintrc config file.
* feat(order_utils.py) generate_order_hash_hex() (#1234)F. Eugene Aumson2018-11-141-0/+18
|
* [order_utils.py] is_signature_valid, via Exchange contract (#1216)F. Eugene Aumson2018-11-082-19/+141
| | | | First support for signature validation, done via Exchange contract's isValidSignature() method.
* feat(order_utils.py): ERC721 asset data codec (#1186)F. Eugene Aumson2018-10-271-1/+38
|
* feat(order_utils.py): ERC20 asset data encoding and decodingF. Eugene Aumson2018-10-244-12/+106
| | | | | | | | | | In addition to the ERC20 codec, also: Stopped ignoring type errors on 3rd party imports, by including interface stubs for them; Removed the unimplemented signature-utils module, which was just a stand-in when the python project support was first put in place. https://github.com/0xProject/0x-monorepo/pull/1144
* feat: project stub for python order utilitiesF. Eugene Aumson2018-10-133-0/+19
An empty project, with respect to functionality, but one configured with a test framework, linters, CI integration, etc. https://app.asana.com/0/836857747873847/839549782781239/f