aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/stubs/web3/__init__.pyi
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-11-08 00:20:46 +0800
committerGitHub <noreply@github.com>2018-11-08 00:20:46 +0800
commit95b2898b9c0898c7e2d98ee603bff0604bf2a829 (patch)
tree6ac589bc869b0e177b48e4a2ae545fc986b08cba /python-packages/order_utils/stubs/web3/__init__.pyi
parent094f71066294d14bc1920e4d3ddf4e7705201d61 (diff)
downloaddexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar.gz
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar.bz2
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar.lz
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar.xz
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.tar.zst
dexon-sol-tools-95b2898b9c0898c7e2d98ee603bff0604bf2a829.zip
[order_utils.py] is_signature_valid, via Exchange contract (#1216)
First support for signature validation, done via Exchange contract's isValidSignature() method.
Diffstat (limited to 'python-packages/order_utils/stubs/web3/__init__.pyi')
-rw-r--r--python-packages/order_utils/stubs/web3/__init__.pyi18
1 files changed, 17 insertions, 1 deletions
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: ...
+ ...
...