Skip to content

Commit b8f5b65

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added type hints
1 parent 1e04210 commit b8f5b65

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

etherscan/enums/constants_enum.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33

44
@dataclass(frozen=True)
55
class ConstantsEnum:
6-
PREFIX = "https://api.etherscan.io/api?"
7-
MODULE = "module="
8-
ACTION = "&action="
9-
CONTRACT_ADDRESS = "&contractaddress="
10-
ADDRESS = "&address="
11-
OFFSET = "&offset="
12-
PAGE = "&page="
13-
SORT = "&sort="
14-
BLOCK_TYPE = "&blocktype="
15-
TO = "&to="
16-
VALUE = "&value="
17-
DATA = "&data="
18-
POSITION = "&position="
19-
HEX = "&hex="
20-
GAS_PRICE = "&gasPrice="
21-
GAS = "&gas="
22-
START_BLOCK = "&startblock="
23-
END_BLOCK = "&endblock="
24-
BLOCKNO = "&blockno="
25-
TXHASH = "&txhash="
26-
TAG = "&tag="
27-
BOOLEAN = "&boolean="
28-
INDEX = "&index="
29-
API_KEY = "&apikey="
6+
PREFIX: str = "https://api.etherscan.io/api?"
7+
MODULE: str = "module="
8+
ACTION: str = "&action="
9+
CONTRACT_ADDRESS: str = "&contractaddress="
10+
ADDRESS: str = "&address="
11+
OFFSET: str = "&offset="
12+
PAGE: str = "&page="
13+
SORT: str = "&sort="
14+
BLOCK_TYPE: str = "&blocktype="
15+
TO: str = "&to="
16+
VALUE: str = "&value="
17+
DATA: str = "&data="
18+
POSITION: str = "&position="
19+
HEX: str = "&hex="
20+
GAS_PRICE: str = "&gasPrice="
21+
GAS: str = "&gas="
22+
START_BLOCK: str = "&startblock="
23+
END_BLOCK: str = "&endblock="
24+
BLOCKNO: str = "&blockno="
25+
TXHASH: str = "&txhash="
26+
TAG: str = "&tag="
27+
BOOLEAN: str = "&boolean="
28+
INDEX: str = "&index="
29+
API_KEY: str = "&apikey="

etherscan/enums/modules_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dataclass import dataclass
1+
from dataclasses import dataclass
22

33

44
@dataclass(frozen=True)

0 commit comments

Comments
 (0)