aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/stubs/web3/__init__.pyi
blob: fcecc7434c998cca7898fdb6c9bcf1117e5839cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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: ...
        ...
    ...