diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-09 07:46:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-09 07:46:32 +0800 |
commit | eb5f514d25e9392a9226cb778e94c5d7dd6e47f7 (patch) | |
tree | 40cc8c6d7481c01057d5c690f6423cc9938b27e5 /python-packages/order_utils/stubs | |
parent | 57318a6ef22876a8c73321b7cc281302bbd67a3b (diff) | |
parent | 117e2f583ff44bdb63340a2134edea0f3ecb77b3 (diff) | |
download | dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar.gz dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar.bz2 dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar.lz dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar.xz dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.tar.zst dexon-sol-tools-eb5f514d25e9392a9226cb778e94c5d7dd6e47f7.zip |
Merge branch 'development' into fixOrderValidation
* development: (51 commits)
[instant] Viewport specific errors (#1228)
Added more comments
Include wholeNumberSchema in sra-spec schemas
chore(instant): fix linter
Fix isNode
fix(instant): update buy quote at start up in the case of default amount
chore(instant): increase max bundle size for bundle watch
Small code review tweaks
fix: apply css reset to overlay as well
fix(website): turn off production flag when building locally
feat(instant): add Account to the ProviderState
feat(instant): fallback to an empty wallet provider when none is injected
[order_utils.py] is_signature_valid, via Exchange contract (#1216)
chore: linter
fix: progress bar
fix: use fontSize prop in button
feat: make instant resistant to external styles
chore(instant): update OrderState enum to follow capitalization conventions
feat: add faux externall css file
Take out unneeded conditionals
...
Diffstat (limited to 'python-packages/order_utils/stubs')
5 files changed, 25 insertions, 2 deletions
diff --git a/python-packages/order_utils/stubs/setuptools/__init__.pyi b/python-packages/order_utils/stubs/setuptools/__init__.pyi index baa349d70..8ea8d32b7 100644 --- a/python-packages/order_utils/stubs/setuptools/__init__.pyi +++ b/python-packages/order_utils/stubs/setuptools/__init__.pyi @@ -1,6 +1,8 @@ from distutils.dist import Distribution -from typing import Any +from typing import Any, List def setup(**attrs: Any) -> Distribution: ... class Command: ... + +def find_packages(where: str) -> List[str]: ... diff --git a/python-packages/order_utils/stubs/web3/__init__.pyi b/python-packages/order_utils/stubs/web3/__init__.pyi index c6f357009..fcecc7434 100644 --- a/python-packages/order_utils/stubs/web3/__init__.pyi +++ b/python-packages/order_utils/stubs/web3/__init__.pyi @@ -1,10 +1,26 @@ -from typing import Optional, Union +from typing import Dict, Optional, Union + +from web3.utils import datatypes + class Web3: + class HTTPProvider: ... + + def __init__(self, provider: HTTPProvider) -> None: ... + @staticmethod def sha3( primitive: Optional[Union[bytes, int, None]] = None, text: Optional[str] = None, hexstr: Optional[str] = None ) -> bytes: ... + + class net: + version: str + ... + + class eth: + @staticmethod + def contract(address: str, abi: Dict) -> datatypes.Contract: ... + ... ... diff --git a/python-packages/order_utils/stubs/web3/exceptions.pyi b/python-packages/order_utils/stubs/web3/exceptions.pyi new file mode 100644 index 000000000..83abf973d --- /dev/null +++ b/python-packages/order_utils/stubs/web3/exceptions.pyi @@ -0,0 +1,2 @@ +class BadFunctionCallOutput(Exception): + ... diff --git a/python-packages/order_utils/stubs/web3/utils/__init__.pyi b/python-packages/order_utils/stubs/web3/utils/__init__.pyi new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/python-packages/order_utils/stubs/web3/utils/__init__.pyi diff --git a/python-packages/order_utils/stubs/web3/utils/datatypes.pyi b/python-packages/order_utils/stubs/web3/utils/datatypes.pyi new file mode 100644 index 000000000..70baff372 --- /dev/null +++ b/python-packages/order_utils/stubs/web3/utils/datatypes.pyi @@ -0,0 +1,3 @@ +class Contract: + def call(self): ... + ... |