Skip to content

Commit

Permalink
reenable two ancient tests, update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Dec 27, 2024
1 parent 09a5565 commit 6828793
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
12 changes: 11 additions & 1 deletion docs/9.release-notes/1.v8.2.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---
title: "8.2"
title: "8.2 (rc)"
description: DipDup 8.2 release notes
---

<!-- markdownlint-disable no-inline-html -->

# Release Notes: 8.2

Today we are glad to present you DipDup 8.2. This release is all about one thing: indexing Substrate networks.

If you're new to DipDup and want action, follow the [Substrate Quickstart Guide](../0.quickstart-substrate.md)!

If you're familiar with DipDup, the process is very similar to indexing EVM and Starknet networks. Run the `dipdup new` command to initialize the project interactively, update the with your URLs/variables/addresses (in this case, pallets) to index, run `dipdup init`, and you're good to go.

We support three sources of Substrate data. Squid Network provides all kinds of historical data in a very efficient format. For the blocks yet to be processed by Squid Network you can use Substrate node RPC. Indexing with node RPC is much slower, but allows to process blocks as soon as they are announced. Finally, an optional Subscan API connector is used to speed up the project initialization.

This release is a pretty big milestone for us, but we decided to make it a minor one, since we follow the semantic versioning, and 8.2 doesn't introduce any changes that break backward compatibility. So, you can extend your existing projects with Substrate data right after the update. A if you're still on 7.x branch, it's a pretty good time for us to remind you to upgrade! :)

{{ #include 9.release-notes/_8.2_changelog.md }}
{{ #include 9.release-notes/_footer.md }}
9 changes: 9 additions & 0 deletions src/dipdup/config/evm_etherscan.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import logging
from typing import Literal

from pydantic import ConfigDict
Expand All @@ -8,6 +9,8 @@
from dipdup.config import DatasourceConfig
from dipdup.config import HttpConfig

_logger = logging.getLogger(__name__)


@dataclass(config=ConfigDict(extra='forbid', defer_build=True), kw_only=True)
class EvmEtherscanDatasourceConfig(DatasourceConfig):
Expand All @@ -25,3 +28,9 @@ class EvmEtherscanDatasourceConfig(DatasourceConfig):
api_key: str | None = None

http: HttpConfig | None = None

def __post_init__(self) -> None:
if self.kind == 'abi.etherscan':
_logger.warning(
'`abi.etherscan` datasource has been renamed to `evm.etherscan`. Please, update your config.'
)
2 changes: 0 additions & 2 deletions tests/test_index/test_tzkt_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ async def test_ignored_type_filter(
assert not hashes


@pytest.mark.skip('FIXME: Pydantic 2 migration mystery')
async def test_get_origination_filters(
tzkt: TezosTzktDatasource,
index_config: TezosOperationsIndexConfig,
Expand Down Expand Up @@ -112,7 +111,6 @@ async def test_get_origination_filters(
assert hashes == set()


@pytest.mark.skip('FIXME: Pydantic 2 migration mystery')
async def test_get_transaction_filters(tzkt: TezosTzktDatasource, index_config: TezosOperationsIndexConfig) -> None:
index_config.types = (TezosOperationType.transaction,)
index_config.contracts[2].code_hash = -680664524
Expand Down

0 comments on commit 6828793

Please sign in to comment.