Skip to content

Commit cef667e

Browse files
Bump version 7.5.2 (#970)
1 parent 7c84a7c commit cef667e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+287
-161
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].
66

7-
## [Unreleased]
7+
## [7.5.2] - 2024-03-20
88

99
### Fixed
1010

@@ -1391,7 +1391,8 @@ This release contains no changes except for the version number.
13911391
[semantic versioning]: https://semver.org/spec/v2.0.0.html
13921392

13931393
<!-- Versions -->
1394-
[Unreleased]: https://github.com/dipdup-io/dipdup/compare/7.5.1...HEAD
1394+
[Unreleased]: https://github.com/dipdup-io/dipdup/compare/7.5.2...HEAD
1395+
[7.5.2]: https://github.com/dipdup-io/dipdup/compare/7.5.1...7.5.2
13951396
[7.5.1]: https://github.com/dipdup-io/dipdup/compare/7.5.0...7.5.1
13961397
[7.5.0]: https://github.com/dipdup-io/dipdup/compare/7.4.0...7.5.0
13971398
[6.5.16]: https://github.com/dipdup-io/dipdup/compare/6.5.15...6.5.16

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ docs_build: ## Build docs
5656
python scripts/docs.py dump-references
5757
python scripts/docs.py dump-demos
5858
python scripts/docs.py dump-jsonschema
59+
python scripts/docs.py merge-changelog
5960
python scripts/docs.py markdownlint
6061
python scripts/docs.py build --source docs --destination ${FRONTEND_PATH}/content/docs
6162

docs/9.release-notes/1.v7.5.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,5 @@ The Hasura adapter now supports the `bulk` request type to apply table customiza
1717

1818
Finally, DipDup 6.5, the stable release branch, has reached end-of-life. 6.5.16 is the last release in this branch. Please, follow the [7.0 Migration Guide](../9.release-notes/6.v7.0.md#migration-guide) to upgrade to the latest version.
1919

20-
## Changes since 7.4
21-
22-
### Added
23-
24-
- config: Added `http.polling_interval` option to set the interval between polling requests (some datasources).
25-
- hasura: Allow `bulk` request type in custom metadata files.
26-
27-
### Fixed
28-
29-
- abi.etherscan: Raise `AbiNotAvailableError` when contract is not verified.
30-
- cli: Fixed incorrect indexer status logging.
31-
- evm.node: Fixed default ratelimit sleep time being too high.
32-
- evm.node: Fixed memory leak when using realtime subscriptions.
33-
- evm.node: Fixed processing chain reorgs.
34-
- evm.node: Respect `http.batch_size` when fetching block headers.
35-
- evm.subsquid.transactions: Fixed issue with `node_only` flag ignored.
36-
37-
### Performance
38-
39-
- evm.subsquid: Dynamically adjust the batch size when syncing with node.
40-
- hasura: Apply table customizations in a single request.
41-
- performance: Collect hit/miss stats for cached models.
42-
- performance: Decrease main loop and node polling intervals.
43-
- performance: Drop caches when all indexes have reached realtime.
44-
20+
{{ #include 9.release-notes/_7.5_changelog.md }}
4521
{{ #include 9.release-notes/_footer.md }}

docs/9.release-notes/2.v7.4.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,5 @@ indexes:
2727
first_level: 4634748
2828
```
2929
30-
## Changes since 7.3
31-
32-
### Added
33-
34-
- cli: Added `--template` option to `new` command to skip template selection.
35-
- evm.subsquid.transactions: Added `evm.subsquid.transactions` index kind to process EVM transactions.
36-
37-
### Fixed
38-
39-
- cli: Fixed crash when running `init` command with a config outside of the project directory.
40-
- codegen: Don't create intermediate `events.json` file in ABI directory.
41-
- evm.subsquid: When request to worker fails, ask router for another one instead of retrying the same worker.
42-
30+
{{ #include 9.release-notes/_7.4_changelog.md }}
4331
{{ #include 9.release-notes/_footer.md }}

docs/9.release-notes/3.v7.3.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,5 @@ Read more about Etherlink and DipDup support for it:
8080
- [Etherlink docs](https://docs.etherlink.com/)
8181
- [Etherlink: Building The Most Decentralized EVM Layer 2 (On Tezos)](https://news.tezoscommons.org/etherlink-building-the-most-decentralized-evm-layer-2-on-tezos-1c749fb78d34).
8282

83-
## Changes since 7.2
84-
85-
### Added
86-
87-
- env: Added `DIPDUP_NO_VERSION_CHECK` and `DIPDUP_NO_SYMLINK` variables.
88-
- tezos.tzkt.operations: Added new operation type `sr_execute` for Etherlink smart rollups.
89-
90-
### Fixed
91-
92-
- abi.etherscan: Fixed handling "rate limit reached" errors.
93-
- cli: Do not consider config as oneshot if `tezos.tzkt.head` index is present.
94-
- cli: Fixed setting logger levels based on config and env variables.
95-
- codegen: Allow dots to be used in typenames indicating nested packages.
96-
- codegen: Always cleanup jsonschemas before generating types.
97-
- config: Make `ws_url` field optional for `evm.node` datasource.
98-
- evm.node: Make `withdrawals_root` field optional in `EvmNodeHeadData` model.
99-
- http: Fixed crash on some datasource URLs.
100-
- http: Fixed incorrect number of retries performed on failed requests.
101-
102-
### Performance
103-
104-
- evm.subsquid.events: Increase indexing speed when using EVM node.
105-
83+
{{ #include 9.release-notes/_7.3_changelog.md }}
10684
{{ #include 9.release-notes/_footer.md }}

docs/9.release-notes/4.v7.2.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -93,37 +93,5 @@ Indexing EVM events with node RPC (`evm.node` datasource) has become faster. Nod
9393

9494
Finally, we have sped up the generation of Pydantic typeclasses with `datamodel-codegen`. Also, resulting classes use `X | Y` union syntax when possible.
9595

96-
## Changes since 7.1
97-
98-
### Added
99-
100-
- api: Added HTTP API to manage a running indexer.
101-
- cli: Added `DIPDUP_CONFIG` and `DIPDUP_ENV_FILE` environment variables corresponding to `--config` and `--env-file` options.
102-
- config: Added `http.request_timeout` option to set the total timeout for HTTP requests.
103-
- evm.subsquid: Added Prometheus metrics required for Subsquid Cloud deployments.
104-
- project: Added Makefile to the default project template (only for new projects).
105-
- project: Added optional `package_manager` field to replay config.
106-
- tezos.tzkt: Added support for Etherlink smart rollups (`sr1…` addresses).
107-
108-
### Fixed
109-
110-
- cli: Don't suppress uncaught exceptions when performance monitoring is disabled.
111-
- codegen: Use datamodel-code-generator from the project's virtualenv.
112-
- evm.node: Fixed an issue with realtime subscriptions which led to indexing being stuck in some cases.
113-
- evm.node: Fixed crash on anonymous event logs during the last mile indexing.
114-
- evm.node: Raise an exception when no realtime messages have been received in `http.connection_timeout` seconds.
115-
- evm.subsquid: Last mile indexing is significantly faster now.
116-
- http: Use `request_timeout` instead of `connection_timeout` for total timeout.
117-
- install: Don't install datamodel-code-generator as a CLI tool.
118-
- install: Respect package manager if specified in pyproject.toml.
119-
- tezos.tzkt: Fixed an issue with approving schema after reindexing triggered by rollback.
120-
121-
### Performance
122-
123-
- evm.subsquid.events: Request logs in batches to speed up the last mile indexing.
124-
125-
### Security
126-
127-
- deps: Updated PyArrow to 14.0.1 to fix [CVE-2023-47248](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm)
128-
96+
{{ #include 9.release-notes/_7.1_changelog.md }}
12997
{{ #include 9.release-notes/_footer.md }}

docs/9.release-notes/5.v7.1.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,5 @@ jobs:
154154
155155
That's all for today. Thanks for reading!
156156
157-
## Changes since 7.0
158-
159-
### Added
160-
161-
- cli: Added `--unsafe`, `--compose`, `--internal` flags to `config env` command.
162-
- cli: Added missing short equivalents for options in some commands.
163-
- cli: Relative paths to be initialized now can be passed to the `init` command as arguments.
164-
- tezos.tzkt.token_balances: Added new index.
165-
166-
### Fixed
167-
168-
- cli: Fixed `DIPDUP_DEBUG` not being applied to the package logger.
169-
- cli: Fixed crash on early Python 3.11 releases.
170-
- project: Update default Docker tag for TimescaleDB HA.
171-
- tezos.tzkt.token_transfers: Fixed filtering transfers by token_id.
172-
157+
{{ #include 9.release-notes/_7.1_changelog.md }}
173158
{{ #include 9.release-notes/_footer.md }}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<!-- markdownlint-disable first-line-h1 -->
2+
## Changes since 7.-1
3+
4+
### Added
5+
6+
- abi.etherscan: Added `abi.etherscan` datasource to fetch ABIs from Etherscan.
7+
- api: Added `/performance` endpoint to request indexing stats.
8+
- cli: Added `report` command group to manage performance and crash reports created by DipDup.
9+
- config: Added `advanced.api` section to configure monitoring API exposed by DipDup.
10+
- config: Added `advanced.decimal_precision` field to overwrite precision if it's not guessed correctly based on project models.
11+
- config: Added `advanced.metrics` field to configure amount of gathered metrics.
12+
- config: Added `advanced.unsafe_sqlite` field to disable journaling and data integrity checks.
13+
- config: Added `http.alias` field to overwrite alias of datasource HTTP gateway.
14+
- database: Added `dipdup_meta` immune table to store arbitrary JSON values.
15+
- database: Added `dipdup_wipe` and `dipdup_approve` SQL functions to the schema.
16+
- database: Added experimental support for immune tables in SQLite.
17+
- env: Added `DIPDUP_DEBUG` environment variable to enable debug logging.
18+
- evm.node: Added `evm.node` datasource to receive events from Ethereum node and use web3 API.
19+
- evm.subsquid.events: Added `evm.subsquid.events` index to process event logs from Subsquid Archives.
20+
- evm.subsquid: Added `evm.subsquid` datasource to fetch historical data from Subsquid Archives.
21+
- models: Added optional `maxsize` meta field to `CachedModel` to limit the LRU cache size.
22+
23+
### Fixed
24+
25+
- ci: Fixed dipdup package metadata.
26+
- cli: Fixed `config export --full` command showing original config.
27+
- cli: Fixed `schema wipe` command crash due to `dipdup_meta` table being always immune.
28+
- cli: Fixed `schema wipe` command for SQLite databases.
29+
- cli: Fixed ordering of crash reports in `report` group commands.
30+
- cli: Generate base template from replay only when --base flag is set.
31+
- cli: Import package submodules before starting indexing to fail early on import errors.
32+
- cli: Keep the last 100 reports only.
33+
- cli: Remove cached jsonschemas when calling init --force.
34+
- cli: Use correct data path with timescaledb-ha Docker image.
35+
- codegen: Filter jsonschemas by prefixes supported by code generator.
36+
- config: Don't create empty SentryConfig if DSN is not set.
37+
- context: Share internal state between context instances.
38+
- database: Allow running project scripts and queries on SQLite.
39+
- database: Don't cleanup model updates on every loop.
40+
- database: Fixed `OperationalError` raised in some cases after calling `bulk_create`.
41+
- demos: Don't include database config in root config.
42+
- demos: Fixed decimal overflow in `demo_uniswap` project.
43+
- evm.node: Fixed incorrect log request parameters.
44+
- evm.node: Fixed keepalive loop for websocket connection.
45+
- evm.node: Fixed parsing empty realtime message payloads.
46+
- evm.node: Fixed parsing topics and integers in datasource models.
47+
- evm.node: Set `timestamp` field to the block timestamp.
48+
- evm.subsquid.events: Fixed incorrect log request parameters.
49+
- evm.subsquid.events: Fixed issue with determining the last level when syncing with node.
50+
- evm.subsquid.events: Sync to `last_level` if specified in config.
51+
- evm.subsquid: Create a separate aiohttp session for each worker.
52+
- hasura: Increated retry count for initial connection (healthcheck).
53+
- index: Fixed crash when parsing typed transactions with empty parameter.
54+
- index: Remove Python limitation on large int<->str conversions.
55+
- install: Fixed issue with interpreting user answers in some cases.
56+
- jobs: Don't add jobs before scheduler is started.
57+
- package: Create jsonschemas directory if not exists.
58+
- package: Create missing files from project base on init.
59+
- package: Create package symlink only when needed.
60+
- package: Don't create empty pyproject.toml during init.
61+
- package: Fixed discovery of the package when workdir is project root.
62+
- package: Fixed mypy command in default template.
63+
- package: Fixed package detection for poetry managed projects.
64+
- package: Update replay.yaml on init.
65+
- tezos.tzkt.events: Fixed parsing contract event data.
66+
- tezos.tzkt.operations: Fixed parsing operations with empty parameters.
67+
- tezos.tzkt: Fixed issue with processing rollbacks while sync is in progress.
68+
- tezos.tzkt: Fixed operation matching when contract code hash specified as a string.
69+
- tezos.tzkt: Fixed regression in `get_transactions` method pagination.
70+
71+
### Changed
72+
73+
- ci: Docker images are now based on Debian 12.
74+
- cli: Commands to manage local dipdup installation moved to the `self` group.
75+
- cli: `config env --file` option renamed to `--output`.
76+
- cli: `init --overwrite-types` flag renamed to `--force` and now also affects ABIs.
77+
- cli: `report` command renamed to `report ls`.
78+
- config: `advanced.rollback_depth` value set based on indexes used in the project if not set explicitly.
79+
- config: `logging` field now can contain either loglevel or name-loglevel mapping.
80+
- context: Signature of `add_contract` method has changed.
81+
- database: Querysets are no longer copied between chained method calls (`.filter().order_by().limit()`)
82+
- database: Store datasource aliases instead of URLs in `dipdup_head` table.
83+
- database: `EnumField` now uses `TEXT` type instead of `VARCHAR(n)`.
84+
- models: User models must use field classes from `dipdup.fields` module instead of `tortoise.fields`.
85+
- tezos.tzkt.head: Replaced `handlers` section with a single `callback` field in config.
86+
- tezos.tzkt: Signatures of `[get/iter]_similar_contracts` and `[get/iter]_originated_contracts` methods have changed.
87+
88+
### Removed
89+
90+
- ci: Docker images no longer contain git, poetry and custom scripts.
91+
- ci: `-slim` and `-pytezos` Docker images are no longer published.
92+
- cli: Removed `dipdup-install` alias to `dipdup.install`.
93+
- cli: Removed `status` command.
94+
- config: Removed `# dipdup: ignore` hint used to ignore typeclass during init.
95+
- config: Removed `advanced.metadata_interface` flag (always enabled).
96+
- config: Removed `similar_to` filter of `operation` index pattern.
97+
- sentry: Removed `crash_reporting` flag and built-in DSN.
98+
99+
### Other
100+
101+
- tzkt: Request plain values instead of mappings from TzKT when possible.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- markdownlint-disable first-line-h1 -->
2+
## Changes since 7.0
3+
4+
### Added
5+
6+
- cli: Added `--unsafe`, `--compose`, `--internal` flags to `config env` command.
7+
- cli: Added missing short equivalents for options in some commands.
8+
- cli: Relative paths to be initialized now can be passed to the `init` command as arguments.
9+
- tezos.tzkt.token_balances: Added new index.
10+
11+
### Fixed
12+
13+
- cli: Fixed `DIPDUP_DEBUG` not being applied to the package logger.
14+
- cli: Fixed crash on early Python 3.11 releases.
15+
- project: Update default Docker tag for TimescaleDB HA.
16+
- tezos.tzkt.token_transfers: Fixed filtering transfers by token_id.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- markdownlint-disable first-line-h1 -->
2+
## Changes since 7.1
3+
4+
### Added
5+
6+
- api: Added HTTP API to manage a running indexer.
7+
- cli: Added `DIPDUP_CONFIG` and `DIPDUP_ENV_FILE` environment variables corresponding to `--config` and `--env-file` options.
8+
- config: Added `http.request_timeout` option to set the total timeout for HTTP requests.
9+
- evm.subsquid: Added Prometheus metrics required for Subsquid Cloud deployments.
10+
- project: Added Makefile to the default project template (only for new projects).
11+
- project: Added optional `package_manager` field to replay config.
12+
- tezos.tzkt: Added support for Etherlink smart rollups (`sr1…` addresses).
13+
14+
### Fixed
15+
16+
- cli: Don't suppress uncaught exceptions when performance monitoring is disabled.
17+
- codegen: Use datamodel-code-generator from the project's virtualenv.
18+
- evm.node: Fixed an issue with realtime subscriptions which led to indexing being stuck in some cases.
19+
- evm.node: Fixed crash on anonymous event logs during the last mile indexing.
20+
- evm.node: Raise an exception when no realtime messages have been received in `http.connection_timeout` seconds.
21+
- evm.subsquid: Last mile indexing is significantly faster now.
22+
- http: Use `request_timeout` instead of `connection_timeout` for total timeout.
23+
- install: Don't install datamodel-code-generator as a CLI tool.
24+
- install: Respect package manager if specified in pyproject.toml.
25+
- tezos.tzkt: Fixed an issue with approving schema after reindexing triggered by rollback.
26+
27+
### Performance
28+
29+
- evm.subsquid.events: Request logs in batches to speed up the last mile indexing.
30+
31+
### Security
32+
33+
- deps: Updated PyArrow to 14.0.1 to fix [CVE-2023-47248](https://github.com/advisories/GHSA-5wvp-7f3h-6wmm)

0 commit comments

Comments
 (0)