File tree 4 files changed +57
-0
lines changed
4 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass (frozen = True )
5
+ class ActionsEnum :
6
+ BALANCE_HISTORY : str = "balancehistory"
7
+ BALANCE_MULTI : str = "balancemulti"
8
+ BALANCE : str = "balance"
9
+ GET_MINED_BLOCKS : str = "getminedblocks"
10
+ TOKENNFTTX : str = "tokennfttx"
11
+ TOKENTX : str = "tokentx"
12
+ TXLIST_INTERNAL : str = "txlistinternal"
13
+ TXLIST : str = "txlist"
14
+
Original file line number Diff line number Diff line change
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass (frozen = True )
5
+ class FieldsEnum :
6
+ ACTION : str = "&action="
7
+ ADDRESS : str = "&address="
8
+ API_KEY : str = "&apikey="
9
+ BLOCK_TYPE : str = "&blocktype="
10
+ BLOCKNO : str = "&blockno="
11
+ BOOLEAN : str = "&boolean="
12
+ CONTRACT_ADDRESS : str = "&contractaddress="
13
+ DATA : str = "&data="
14
+ END_BLOCK : str = "&endblock="
15
+ GAS_PRICE : str = "&gasPrice="
16
+ GAS : str = "&gas="
17
+ HEX : str = "&hex="
18
+ INDEX : str = "&index="
19
+ MODULE : str = "module="
20
+ OFFSET : str = "&offset="
21
+ PAGE : str = "&page="
22
+ POSITION : str = "&position="
23
+ PREFIX : str = "https://api.etherscan.io/api?"
24
+ SORT : str = "&sort="
25
+ START_BLOCK : str = "&startblock="
26
+ TAG : str = "&tag="
27
+ TO : str = "&to="
28
+ TXHASH : str = "&txhash="
29
+ VALUE : str = "&value="
Original file line number Diff line number Diff line change
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass (frozen = True )
5
+ class MessagesEnum :
6
+ METHOD_DISABLED : str = "This method is disabled for now."
7
+ INVALID_ADDRESS : str = "This address is invalid."
Original file line number Diff line number Diff line change
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass (frozen = True )
5
+ class TagsEnum :
6
+ ACCOUNT : str = "account"
7
+ LATEST : str = "latest"
You can’t perform that action at this time.
0 commit comments