Skip to content

Commit 73e90e8

Browse files
Do not request unnecessary operation fields from TzKT (#36)
1 parent 6e0193c commit 73e90e8

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

src/dipdup/datasources/tzkt/datasource.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@
2929
"initiator",
3030
"sender",
3131
"nonce",
32-
"gasLimit",
33-
"gasUsed",
34-
"storageLimit",
35-
"storageUsed",
36-
"bakerFee",
37-
"storageFee",
38-
"allocationFee",
32+
# "gasLimit",
33+
# "gasUsed",
34+
# "storageLimit",
35+
# "storageUsed",
36+
# "bakerFee",
37+
# "storageFee",
38+
# "allocationFee",
3939
"target",
4040
"amount",
4141
"parameter",
4242
"storage",
4343
"status",
44-
"errors",
44+
# "errors",
4545
"hasInternals",
4646
# "quote",
47-
"parameters",
4847
"diffs,",
4948
)
5049

@@ -331,13 +330,6 @@ def convert_operation(cls, operation_json: Dict[str, Any]) -> OperationData:
331330
hash=operation_json['hash'],
332331
counter=operation_json['counter'],
333332
sender_address=operation_json['sender']['address'],
334-
gas_limit=operation_json['gasLimit'],
335-
gas_used=operation_json['gasUsed'],
336-
storage_limit=operation_json['storageLimit'],
337-
storage_used=operation_json['storageUsed'],
338-
baker_fee=operation_json['bakerFee'],
339-
storage_fee=operation_json['storageFee'],
340-
allocation_fee=operation_json['allocationFee'],
341333
target_address=operation_json['target']['address'],
342334
amount=operation_json['amount'],
343335
status=operation_json['status'],

src/dipdup/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ class OperationData:
4242
hash: str
4343
counter: int
4444
sender_address: str
45-
gas_limit: int
46-
gas_used: int
47-
storage_limit: int
48-
storage_used: int
49-
baker_fee: int
50-
storage_fee: int
51-
allocation_fee: int
5245
target_address: str
5346
amount: int
5447
status: str

0 commit comments

Comments
 (0)