-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathfields_enum.py
35 lines (33 loc) · 1017 Bytes
/
fields_enum.py
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
27
28
29
30
31
32
33
34
35
from dataclasses import dataclass
@dataclass(frozen=True)
class FieldsEnum:
ACTION: str = "&action="
ADDRESS: str = "&address="
API_KEY: str = "&apikey="
BLOCK_TYPE: str = "&blocktype="
BLOCKNO: str = "&blockno="
BOOLEAN: str = "&boolean="
CLIENT_TYPE: str = "&clienttype="
CLOSEST: str = "&closest="
CONTRACT_ADDRESS: str = "&contractaddress="
DATA: str = "&data="
END_BLOCK: str = "&endblock="
END_DATE: str = "&enddate="
GAS_PRICE: str = "&gasPrice="
GAS: str = "&gas="
HEX: str = "&hex="
INDEX: str = "&index="
MODULE: str = "module="
OFFSET: str = "&offset="
PAGE: str = "&page="
POSITION: str = "&position="
PREFIX: str = "https://api-{}.etherscan.io/api?"
SORT: str = "&sort="
START_BLOCK: str = "&startblock="
START_DATE: str = "&startdate="
SYNC_MODE: str = "&syncmode="
TAG: str = "&tag="
TIMESTAMP: str = "×tamp="
TO: str = "&to="
TXHASH: str = "&txhash="
VALUE: str = "&value="