Skip to content

Commit

Permalink
Fix missing node var & add special handling for u256/bytearray
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Dec 18, 2024
1 parent ff25807 commit 869d18a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dipdup/abi/cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class CairoAbi(TypedDict):
def _convert_type(type_: CairoType) -> dict[str, Any]:
# TODO: Support all types
if type_.__class__.__name__ in {'EventType', 'StructType'}:
if type_.name == 'Uint256':
return {'type': 'integer'}
if type_.name == 'core::byte_array::ByteArray':
return {'type': 'string'}
return {
'type': 'object',
'properties': {
Expand Down
2 changes: 2 additions & 0 deletions src/dipdup/datasources/starknet_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@


class StarknetNodeDatasource(IndexDatasource[StarknetNodeDatasourceConfig]):
NODE_LAST_MILE = 128

_default_http_config = HttpConfig(
batch_size=1000,
)
Expand Down

0 comments on commit 869d18a

Please sign in to comment.