diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f054fb5fb..76e8fa4ee 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,8 +19,7 @@ on: - '.github/workflows/installer.yml' env: - # FIXME: substrate preview - FRONTEND_BRANCH: feat/substrate + FRONTEND_BRANCH: ${{ github.ref == 'refs/heads/docs-next' && 'dev' || 'master' }} GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_TOKEN }} jobs: @@ -66,8 +65,7 @@ jobs: # NOTE: Installer is tested in `installer` workflow - name: Commit and push frontend - # FIXME: substrate preview - # if: github.ref_type == 'tag' + if: github.ref_type == 'tag' run: | cp src/dipdup/install.py ../interface/public/install.py cd ../interface diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb4c70aa..2df8f0076 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic Releases prior to 7.0 has been removed from this file to declutter search results; see the [archived copy](https://github.com/dipdup-io/dipdup/blob/8.0.0b5/CHANGELOG.md) for the full list. -## [8.1.3] - 2024-12-20 +## [Unreleased] ### Added @@ -15,7 +15,7 @@ Releases prior to 7.0 has been removed from this file to declutter search result - substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan. - substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network. -## [Unreleased] +## [8.1.3] - 2024-12-20 ### Fixed diff --git a/docs/9.release-notes/_8.0_changelog.md b/docs/9.release-notes/_8.0_changelog.md index ded634f66..2d3c20412 100644 --- a/docs/9.release-notes/_8.0_changelog.md +++ b/docs/9.release-notes/_8.0_changelog.md @@ -18,15 +18,17 @@ - starknet.events: Added `starknet.events` index kind to process Starknet events. - starknet.node: Added Starknet node datasource for last mile indexing. - starknet.subsquid: Added `starknet.subsquid` datasource to fetch historical data from Subsquid Archives. +- substrate.events: Added `subtrate.events` index kind to process Substrate events. +- substrate.node: Added `subtrate.node` datasource to receive data from Substrate node. +- substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan. +- substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network. - tezos.operations: Added `sr_cement` operation type to process Smart Rollup Cemented Commitments. ### Fixed - cli: Don't save reports for successful test runs. - cli: Don't update existing installation in `self install` command unless asked to. -- cli: Don't wrap exceptions with `CallbackError` to avoid shadowing the original exception. - cli: Fixed `--pre` installer flag. -- cli: Fixed `--template` option being ignored when `--quiet` flag is set. - cli: Fixed env files not being loaded in some commands. - cli: Fixed errors raised when the project package is invalid. - cli: Fixed progress estimation when there are indexes with `last_level` option set. @@ -34,26 +36,19 @@ - cli: Improved logging of indexer status. - config: Allow `sentry.dsn` to be empty string. - config: Fixed (de)serialization of hex strings in config. -- config: Fixed parsing config files after updating to pydantic 2.10.3. -- config: Fixed setting default loglevels when `logging` is a dict. - config: Fixed setting logging levels according to the config. -- config: Fixed starknet index validation error. - database: Fixed concurrency issue when using `get_or_create` method. - evm.events: Fixed matching logs when filtering by topic0. - evm.events: Improve fetching event batches from node. - evm.subsquid: Fixed typo in `iter_events` method name. - evm: Fixed crash when contract ABI contains overloaded methods. - install: Fixed reinstalling package when `--force` flag is used. -- metrics: Fixed indexed objects counter. - models: Fixed `CachedModel` preloading. - models: Fixed setting default value for `Meta.maxsize`. - package: Create package in-place if cwd equals package name. - performance: Add index name to fetcher and realtime queues. - performance: Fixed estimation indexing speed in levels per second. - starknet.events: Fixed filtering events by key. -- starknet: Added support for struct and array types, as well as u256 and ByteArray handlers. -- starknet: Fixed event payload parsing (account for keys field). -- starknet: Fixed missing class property in node datasource. - subsquid: Fixed missing entry in `dipdup_head` internal table. - tezos.big_maps: Fixed logging status message in `skip_history` mode. - tezos.big_maps: Respect order of handlers in `skip_history` mode. diff --git a/docs/9.release-notes/_8.1_changelog.md b/docs/9.release-notes/_8.1_changelog.md index cad455a94..93c1d4431 100644 --- a/docs/9.release-notes/_8.1_changelog.md +++ b/docs/9.release-notes/_8.1_changelog.md @@ -8,15 +8,20 @@ - cli: Added interactive mode for `new` command. - database: Support database migrations using [`aerich`](https://github.com/tortoise/aerich). - hasura: Added `hide` and `hide_internal` config options to make specified tables/views private. -- substrate.events: Added `subtrate.events` index kind to process Substrate events. -- substrate.node: Added `subtrate.node` datasource to receive data from Substrate node. -- substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan. -- substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network. ### Fixed +- cli: Don't wrap exceptions with `CallbackError` to avoid shadowing the original exception. +- cli: Fixed `--template` option being ignored when `--quiet` flag is set. - cli: Fixed progress estimation logging. - cli: Reload constants in `dipdup.env` after applying env-files. +- config: Fixed parsing config files after updating to pydantic 2.10.3. +- config: Fixed setting default loglevels when `logging` is a dict. +- config: Fixed starknet index validation error. - context: Allow to add Starknet contracts in runtime. - database: Ignore non-existent immutable table on schema wipe. +- metrics: Fixed indexed objects counter. - starknet.events: Fixed event ID calculation. +- starknet: Added support for struct and array types, as well as u256 and ByteArray handlers. +- starknet: Fixed event payload parsing (account for keys field). +- starknet: Fixed missing class property in node datasource. diff --git a/src/dipdup/project.py b/src/dipdup/project.py index 6fcb686b1..61ee0a12c 100644 --- a/src/dipdup/project.py +++ b/src/dipdup/project.py @@ -374,10 +374,6 @@ def _render_templates( ).with_suffix(path.suffix[:-3]) output_path = Path(Template(str(output_path)).render(project=answers)) - # FIXME: A very dirty hack for demo_substrate_events project - if output_path.name == 'Dockerfile': - force = True - _render(answers, template_path, output_path, force) # NOTE: If there are files without .j2 extension, just copy them diff --git a/src/dipdup/runtimes.py b/src/dipdup/runtimes.py index a9f366eb8..48da0c763 100644 --- a/src/dipdup/runtimes.py +++ b/src/dipdup/runtimes.py @@ -122,7 +122,7 @@ def get_spec_version(self, name: str) -> SubstrateSpecVersion: except FileNotFoundError: # FIXME: Using last known version to help with missing abis last_known = sorted_glob(self.abi_path, 'v*.json')[-1].stem - _logger.info('using last known version `%s`', last_known) + _logger.debug('using last known version `%s`', last_known) self._spec_versions[name] = self.get_spec_version(last_known[1:]) return self._spec_versions[name]