From ea12f1ad8058bc91afcfd802bc8feba7b40991ea Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Mon, 6 Nov 2023 14:25:02 -0300 Subject: [PATCH 1/5] Update default Docker tag for TimescaleDB HA (#882) --- CHANGELOG.md | 4 ++++ src/demo_uniswap/configs/replay.yaml | 2 +- src/demo_uniswap/deploy/compose.swarm.yaml | 2 +- src/demo_uniswap/deploy/compose.yaml | 2 +- src/dipdup/project.py | 2 +- src/dipdup/projects/demo_uniswap/replay.yaml | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e88abc92c..4d4c9225d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. +## [Unreleased] + +- project: Update default Docker tag for TimescaleDB HA. + ## [7.1.0] - 2023-10-27 ### Added diff --git a/src/demo_uniswap/configs/replay.yaml b/src/demo_uniswap/configs/replay.yaml index f7f873e0b..e490fd14f 100644 --- a/src/demo_uniswap/configs/replay.yaml +++ b/src/demo_uniswap/configs/replay.yaml @@ -11,7 +11,7 @@ replay: license: MIT name: John Doe email: john_doe@example.com - postgres_image: timescale/timescaledb-ha:pg15-latest + postgres_image: timescale/timescaledb-ha:pg15 postgres_data_path: /home/postgres/pgdata/data hasura_image: hasura/graphql-engine:latest line_length: 120 diff --git a/src/demo_uniswap/deploy/compose.swarm.yaml b/src/demo_uniswap/deploy/compose.swarm.yaml index 2c2b89f98..59a215d57 100644 --- a/src/demo_uniswap/deploy/compose.swarm.yaml +++ b/src/demo_uniswap/deploy/compose.swarm.yaml @@ -29,7 +29,7 @@ services: tag: "\{\{.Name\}\}.\{\{.ImageID\}\}" db: - image: timescale/timescaledb-ha:pg15-latest + image: timescale/timescaledb-ha:pg15 volumes: - db:/home/postgres/pgdata/data env_file: .env diff --git a/src/demo_uniswap/deploy/compose.yaml b/src/demo_uniswap/deploy/compose.yaml index 782ea5c45..06d7c9f9f 100644 --- a/src/demo_uniswap/deploy/compose.yaml +++ b/src/demo_uniswap/deploy/compose.yaml @@ -17,7 +17,7 @@ services: - hasura db: - image: timescale/timescaledb-ha:pg15-latest + image: timescale/timescaledb-ha:pg15 ports: - 5432 volumes: diff --git a/src/dipdup/project.py b/src/dipdup/project.py index 6725a571a..33b40d1b6 100644 --- a/src/dipdup/project.py +++ b/src/dipdup/project.py @@ -205,7 +205,7 @@ def answers_from_terminal() -> Answers: options=( 'postgres:15', 'timescale/timescaledb:latest-pg15', - 'timescale/timescaledb-ha:pg15-latest', + 'timescale/timescaledb-ha:pg15', ), comments=( 'PostgreSQL', diff --git a/src/dipdup/projects/demo_uniswap/replay.yaml b/src/dipdup/projects/demo_uniswap/replay.yaml index 98932a8bd..646fdf964 100644 --- a/src/dipdup/projects/demo_uniswap/replay.yaml +++ b/src/dipdup/projects/demo_uniswap/replay.yaml @@ -3,5 +3,5 @@ replay: description: Uniswap V3 pools, positions, swaps, ticks, etc. package: demo_uniswap template: demo_uniswap - postgres_image: timescale/timescaledb-ha:pg15-latest + postgres_image: timescale/timescaledb-ha:pg15 postgres_data_path: /home/postgres/pgdata/data From 2e22fa084dc1fdacd2883427e29bdc6214e2f99f Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Mon, 6 Nov 2023 14:25:58 -0300 Subject: [PATCH 2/5] Fix crash on early Python 3.11 releases (#885) --- CHANGELOG.md | 3 +++ docs/15.thanks.md | 1 + src/dipdup/cli.py | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d4c9225d..a68a67560 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic ## [Unreleased] +### Fixed + +- cli: Fixed crash on early Python 3.11 releases. - project: Update default Docker tag for TimescaleDB HA. ## [7.1.0] - 2023-10-27 diff --git a/docs/15.thanks.md b/docs/15.thanks.md index d8b8dc67a..5a929b825 100644 --- a/docs/15.thanks.md +++ b/docs/15.thanks.md @@ -27,6 +27,7 @@ We are grateful to all the people who help us with the project. - [gdsoumya](https://github.com/gdsoumya) - [Göran Sandström](https://github.com/veqtor) - [herohthd](https://github.com/herohthd) +- [Javier Graciá Carpio](https://github.com/jagracar) - [Karan Dua](https://github.com/Karantezsure) - [Nick Kalomoiris](https://github.com/nikos-kalomoiris) - [magicCity](https://github.com/tezosmiami) diff --git a/src/dipdup/cli.py b/src/dipdup/cli.py index 78c130b2f..2818acc1c 100644 --- a/src/dipdup/cli.py +++ b/src/dipdup/cli.py @@ -211,7 +211,11 @@ async def cli(ctx: click.Context, config: list[str], env_file: list[str]) -> Non return # NOTE: https://github.com/python/cpython/issues/95778 - sys.set_int_max_str_digits(0) + # NOTE: Method is not available in early Python 3.11 + try: + sys.set_int_max_str_digits(0) + except AttributeError: + _logger.warning("You're running an outdated Python 3.11 release; consider upgrading") from dotenv import load_dotenv From 552f42c0daefe72e086febf05b9e227a4f2249d1 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Tue, 7 Nov 2023 07:15:24 +0800 Subject: [PATCH 3/5] Fix typos in docs (#886) --- docs/1.getting-started/3.config.md | 2 +- docs/6.deployment/4.prometheus.md | 6 +++--- docs/7.references/4.config-details.md | 2 +- docs/9.release-notes/4.history.md | 2 +- src/dipdup/exceptions.py | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/1.getting-started/3.config.md b/docs/1.getting-started/3.config.md index d600d005b..f2fcb596d 100644 --- a/docs/1.getting-started/3.config.md +++ b/docs/1.getting-started/3.config.md @@ -25,7 +25,7 @@ Config consists of multiple top-level mappings. In the table below they are grou | **Integrations** | [hasura](../9.config/6.hasura.md) | Hasura GraphQL Engine configuration | | | [sentry](../9.config/13.sentry.md) | Sentry configuration | | | [prometheus](../9.config/12.prometheus.md) | Prometheus configuration | -| **Miscellanous** | [advanced](../9.config/1.advanced.md) | Tunables that affect framework behavior | +| **Miscellaneous**| [advanced](../9.config/1.advanced.md) | Tunables that affect framework behavior | | | [custom](../9.config/3.custom.md) | Mapping of user-defined values; neither typed nor validated | | | [logging](../9.config/10.logging.md) | Configure logging verbosity | diff --git a/docs/6.deployment/4.prometheus.md b/docs/6.deployment/4.prometheus.md index 7f3b69ef8..b40a90bcd 100644 --- a/docs/6.deployment/4.prometheus.md +++ b/docs/6.deployment/4.prometheus.md @@ -21,9 +21,9 @@ The following metrics are exposed under `dipdup` namespace: |-|-| | `dipdup_indexes_total` | Number of indexes in operation by status | | `dipdup_index_level_sync_duration_seconds` | Duration of indexing a single level | -| `dipdup_index_level_realtime_duration_seconds` | Duration of last index syncronization | -| `dipdup_index_total_sync_duration_seconds` | Duration of the last index syncronization | -| `dipdup_index_total_realtime_duration_seconds` | Duration of the last index realtime syncronization | +| `dipdup_index_level_realtime_duration_seconds` | Duration of last index synchronization | +| `dipdup_index_total_sync_duration_seconds` | Duration of the last index synchronization | +| `dipdup_index_total_realtime_duration_seconds` | Duration of the last index realtime synchronization | | `dipdup_index_levels_to_sync_total` | Number of levels to reach synced state | | `dipdup_index_levels_to_realtime_total` | Number of levels to reach realtime state | | `dipdup_index_handlers_matched_total` | Index total hits | diff --git a/docs/7.references/4.config-details.md b/docs/7.references/4.config-details.md index d621af16d..30a93c07d 100644 --- a/docs/7.references/4.config-details.md +++ b/docs/7.references/4.config-details.md @@ -160,7 +160,7 @@ datasources: kind: tezos.tzkt url: ${TZKT_URL:-https://api.tzkt.io} http: - retry_count: # retry infinetely + retry_count: # retry infinitely retry_sleep: retry_multiplier: ratelimit_rate: diff --git a/docs/9.release-notes/4.history.md b/docs/9.release-notes/4.history.md index c68cc7de0..5db53218f 100644 --- a/docs/9.release-notes/4.history.md +++ b/docs/9.release-notes/4.history.md @@ -172,7 +172,7 @@ TzKT `buffer_size` option remains available, but it's not required to handle cha Now when DipDup catches unhandled exceptions, a crash dump will be saved to the temporary directory. ``` -dipdup.exceptions.CallbackError: An error occured during callback execution +dipdup.exceptions.CallbackError: An error occurred during callback execution ________________________________________________________________________________ `demo_token.hooks.on_restart` callback execution failed: diff --git a/src/dipdup/exceptions.py b/src/dipdup/exceptions.py index a056bcb4b..110c889db 100644 --- a/src/dipdup/exceptions.py +++ b/src/dipdup/exceptions.py @@ -244,7 +244,7 @@ def _help(self) -> str: @dataclass(repr=False) class CallbackError(Error): - """An error occured during callback execution""" + """An error occurred during callback execution""" module: str exc: Exception @@ -261,7 +261,7 @@ def _help(self) -> str: @dataclass(repr=False) class CallbackTypeError(Error): - """Agrument of invalid type was passed to a callback""" + """Argument of invalid type was passed to a callback""" kind: str name: str From fc3298194cdc49d2bc6df1d947e82810544cd092 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Mon, 6 Nov 2023 20:34:38 -0300 Subject: [PATCH 4/5] Bump version 7.1.1 (#888) --- CHANGELOG.md | 5 +- pdm.lock | 132 +++++++++--------- pyproject.toml | 2 +- requirements.dev.txt | 12 +- requirements.txt | 10 +- src/demo_auction/pyproject.toml | 2 +- src/demo_big_maps/pyproject.toml | 2 +- src/demo_blank/pyproject.toml | 2 +- src/demo_dao/pyproject.toml | 2 +- src/demo_dex/pyproject.toml | 2 +- src/demo_domains/pyproject.toml | 2 +- src/demo_events/pyproject.toml | 2 +- src/demo_evm_events/pyproject.toml | 2 +- src/demo_factories/pyproject.toml | 2 +- src/demo_head/pyproject.toml | 2 +- src/demo_nft_marketplace/pyproject.toml | 2 +- src/demo_raw/pyproject.toml | 2 +- src/demo_token/pyproject.toml | 2 +- src/demo_token_balances/pyproject.toml | 2 +- src/demo_token_transfers/pyproject.toml | 2 +- src/demo_uniswap/models/repo.py | 6 +- src/demo_uniswap/pyproject.toml | 2 +- src/dipdup/performance.py | 4 +- .../projects/demo_uniswap/models/repo.py.j2 | 6 +- 24 files changed, 106 insertions(+), 103 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a68a67560..07b0bc0ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. -## [Unreleased] +## [7.1.1] - 2023-11-07 ### Fixed @@ -1231,7 +1231,8 @@ This release contains no changes except for the version number. [semantic versioning]: https://semver.org/spec/v2.0.0.html -[Unreleased]: https://github.com/dipdup-io/dipdup/compare/7.1.0...HEAD +[Unreleased]: https://github.com/dipdup-io/dipdup/compare/7.1.1...HEAD +[7.1.1]: https://github.com/dipdup-io/dipdup/compare/7.1.0...7.1.1 [7.1.0]: https://github.com/dipdup-io/dipdup/compare/7.0.2...7.1.0 [7.0.2]: https://github.com/dipdup-io/dipdup/compare/7.0.1...7.0.2 [7.0.1]: https://github.com/dipdup-io/dipdup/compare/7.0.0...7.0.1 diff --git a/pdm.lock b/pdm.lock index 572382348..a28b165e9 100644 --- a/pdm.lock +++ b/pdm.lock @@ -3,9 +3,8 @@ [metadata] groups = ["default", "dev"] -cross_platform = true -static_urls = false -lock_version = "4.3" +strategy = ["cross_platform"] +lock_version = "4.4" content_hash = "sha256:efee5be5a71d12cb011518dfb65eeafb79905f8b94869c0867032ec6a4fa45c5" [[package]] @@ -779,36 +778,39 @@ files = [ [[package]] name = "lru-dict" -version = "1.2.0" +version = "1.3.0" +requires_python = ">=3.8" summary = "An Dict like LRU container." files = [ - {file = "lru-dict-1.2.0.tar.gz", hash = "sha256:13c56782f19d68ddf4d8db0170041192859616514c706b126d0df2ec72a11bd7"}, - {file = "lru_dict-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b20b7c9beb481e92e07368ebfaa363ed7ef61e65ffe6e0edbdbaceb33e134124"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22147367b296be31cc858bf167c448af02435cac44806b228c9be8117f1bfce4"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:34a3091abeb95e707f381a8b5b7dc8e4ee016316c659c49b726857b0d6d1bd7a"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:877801a20f05c467126b55338a4e9fa30e2a141eb7b0b740794571b7d619ee11"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d3336e901acec897bcd318c42c2b93d5f1d038e67688f497045fc6bad2c0be7"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:8dafc481d2defb381f19b22cc51837e8a42631e98e34b9e0892245cc96593deb"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:87bbad3f5c3de8897b8c1263a9af73bbb6469fb90e7b57225dad89b8ef62cd8d"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:25f9e0bc2fe8f41c2711ccefd2871f8a5f50a39e6293b68c3dec576112937aad"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ae301c282a499dc1968dd633cfef8771dd84228ae9d40002a3ea990e4ff0c469"}, - {file = "lru_dict-1.2.0-cp311-cp311-win32.whl", hash = "sha256:c9617583173a29048e11397f165501edc5ae223504a404b2532a212a71ecc9ed"}, - {file = "lru_dict-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:6b7a031e47421d4b7aa626b8c91c180a9f037f89e5d0a71c4bb7afcf4036c774"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:21b3090928c7b6cec509e755cc3ab742154b33660a9b433923bd12c37c448e3e"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaecd7085212d0aa4cd855f38b9d61803d6509731138bf798a9594745953245b"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ead83ac59a29d6439ddff46e205ce32f8b7f71a6bd8062347f77e232825e3d0a"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:312b6b2a30188586fe71358f0f33e4bac882d33f5e5019b26f084363f42f986f"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:b30122e098c80e36d0117810d46459a46313421ce3298709170b687dc1240b02"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f010cfad3ab10676e44dc72a813c968cd586f37b466d27cde73d1f7f1ba158c2"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20f5f411f7751ad9a2c02e80287cedf69ae032edd321fe696e310d32dd30a1f8"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:afdadd73304c9befaed02eb42f5f09fdc16288de0a08b32b8080f0f0f6350aa6"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7ab0c10c4fa99dc9e26b04e6b62ac32d2bcaea3aad9b81ec8ce9a7aa32b7b1b"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:edad398d5d402c43d2adada390dd83c74e46e020945ff4df801166047013617e"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:91d577a11b84387013815b1ad0bb6e604558d646003b44c92b3ddf886ad0f879"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb12f19cdf9c4f2d9aa259562e19b188ff34afab28dd9509ff32a3f1c2c29326"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9e4c85aa8844bdca3c8abac3b7f78da1531c74e9f8b3e4890c6e6d86a5a3f6c0"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5c6acbd097b15bead4de8e83e8a1030bb4d8257723669097eac643a301a952f0"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:b6613daa851745dd22b860651de930275be9d3e9373283a2164992abacb75b62"}, + {file = "lru-dict-1.3.0.tar.gz", hash = "sha256:54fd1966d6bd1fcde781596cb86068214edeebff1db13a2cea11079e3fd07b6b"}, + {file = "lru_dict-1.3.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:20c595764695d20bdc3ab9b582e0cc99814da183544afb83783a36d6741a0dac"}, + {file = "lru_dict-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d9b30a8f50c3fa72a494eca6be5810a1b5c89e4f0fda89374f0d1c5ad8d37d51"}, + {file = "lru_dict-1.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9710737584650a4251b9a566cbb1a86f83437adb209c9ba43a4e756d12faf0d7"}, + {file = "lru_dict-1.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b84c321ae34f2f40aae80e18b6fa08b31c90095792ab64bb99d2e385143effaa"}, + {file = "lru_dict-1.3.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eed24272b4121b7c22f234daed99899817d81d671b3ed030c876ac88bc9dc890"}, + {file = "lru_dict-1.3.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bd13af06dab7c6ee92284fd02ed9a5613a07d5c1b41948dc8886e7207f86dfd"}, + {file = "lru_dict-1.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a1efc59bfba6aac33684d87b9e02813b0e2445b2f1c444dae2a0b396ad0ed60c"}, + {file = "lru_dict-1.3.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:cfaf75ac574447afcf8ad998789071af11d2bcf6f947643231f692948839bd98"}, + {file = "lru_dict-1.3.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c95f8751e2abd6f778da0399c8e0239321d560dbc58cb063827123137d213242"}, + {file = "lru_dict-1.3.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:abd0c284b26b5c4ee806ca4f33ab5e16b4bf4d5ec9e093e75a6f6287acdde78e"}, + {file = "lru_dict-1.3.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:2a47740652b25900ac5ce52667b2eade28d8b5fdca0ccd3323459df710e8210a"}, + {file = "lru_dict-1.3.0-cp311-cp311-win32.whl", hash = "sha256:a690c23fc353681ed8042d9fe8f48f0fb79a57b9a45daea2f0be1eef8a1a4aa4"}, + {file = "lru_dict-1.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:efd3f4e0385d18f20f7ea6b08af2574c1bfaa5cb590102ef1bee781bdfba84bc"}, + {file = "lru_dict-1.3.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f8f7824db5a64581180ab9d09842e6dd9fcdc46aac9cb592a0807cd37ea55680"}, + {file = "lru_dict-1.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:acd04b7e7b0c0c192d738df9c317093335e7282c64c9d1bb6b7ebb54674b4e24"}, + {file = "lru_dict-1.3.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5c20f236f27551e3f0adbf1a987673fb1e9c38d6d284502cd38f5a3845ef681"}, + {file = "lru_dict-1.3.0-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca3703ff03b03a1848c563bc2663d0ad813c1cd42c4d9cf75b623716d4415d9a"}, + {file = "lru_dict-1.3.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:a9fb71ba262c6058a0017ce83d343370d0a0dbe2ae62c2eef38241ec13219330"}, + {file = "lru_dict-1.3.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f5b88a7c39e307739a3701194993455968fcffe437d1facab93546b1b8a334c1"}, + {file = "lru_dict-1.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2682bfca24656fb7a643621520d57b7fe684ed5fa7be008704c1235d38e16a32"}, + {file = "lru_dict-1.3.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:96fc87ddf569181827458ec5ad8fa446c4690cffacda66667de780f9fcefd44d"}, + {file = "lru_dict-1.3.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dcec98e2c7da7631f0811730303abc4bdfe70d013f7a11e174a2ccd5612a7c59"}, + {file = "lru_dict-1.3.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:6bba2863060caeaedd8386b0c8ee9a7ce4d57a7cb80ceeddf440b4eff2d013ba"}, + {file = "lru_dict-1.3.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:3c497fb60279f1e1d7dfbe150b1b069eaa43f7e172dab03f206282f4994676c5"}, + {file = "lru_dict-1.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d9509d817a47597988615c1a322580c10100acad10c98dfcf3abb41e0e5877f"}, + {file = "lru_dict-1.3.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0213ab4e3d9a8d386c18e485ad7b14b615cb6f05df6ef44fb2a0746c6ea9278b"}, + {file = "lru_dict-1.3.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b50fbd69cd3287196796ab4d50e4cc741eb5b5a01f89d8e930df08da3010c385"}, + {file = "lru_dict-1.3.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:5247d1f011f92666010942434020ddc5a60951fefd5d12a594f0e5d9f43e3b3b"}, ] [[package]] @@ -1058,12 +1060,12 @@ files = [ [[package]] name = "prometheus-client" -version = "0.17.1" -requires_python = ">=3.6" +version = "0.18.0" +requires_python = ">=3.8" summary = "Python client for the Prometheus monitoring system." files = [ - {file = "prometheus_client-0.17.1-py3-none-any.whl", hash = "sha256:e537f37160f6807b8202a6fc4764cdd19bac5480ddd3e0d463c3002b34462101"}, - {file = "prometheus_client-0.17.1.tar.gz", hash = "sha256:21e674f39831ae3f8acde238afd9a27a37d0d2fb5a28ea094f0ce25d2cbf2091"}, + {file = "prometheus_client-0.18.0-py3-none-any.whl", hash = "sha256:8de3ae2755f890826f4b6479e5571d4f74ac17a81345fe69a6778fdb92579184"}, + {file = "prometheus_client-0.18.0.tar.gz", hash = "sha256:35f7a8c22139e2bb7ca5a698e92d38145bc8dc74c1c0bf56f25cca886a764e17"}, ] [[package]] @@ -1429,15 +1431,15 @@ files = [ [[package]] name = "ruamel-yaml" -version = "0.18.2" -requires_python = ">=3" +version = "0.18.5" +requires_python = ">=3.7" summary = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order" dependencies = [ "ruamel-yaml-clib>=0.2.7; platform_python_implementation == \"CPython\" and python_version < \"3.13\"", ] files = [ - {file = "ruamel.yaml-0.18.2-py3-none-any.whl", hash = "sha256:92076ac8a83dbf44ca661dbed3c935229c8cbc2f10b05959dd3bd5292d8353d3"}, - {file = "ruamel.yaml-0.18.2.tar.gz", hash = "sha256:9bce33f7a814cea4c29a9c62fe872d2363d6220b767891d956eacea8fa5e6fe8"}, + {file = "ruamel.yaml-0.18.5-py3-none-any.whl", hash = "sha256:a013ac02f99a69cdd6277d9664689eb1acba07069f912823177c5eced21a6ada"}, + {file = "ruamel.yaml-0.18.5.tar.gz", hash = "sha256:61917e3a35a569c1133a8f772e1226961bf5a1198bea7e23f06a0841dea1ab0e"}, ] [[package]] @@ -1457,40 +1459,40 @@ files = [ [[package]] name = "ruff" -version = "0.1.3" +version = "0.1.4" requires_python = ">=3.7" -summary = "An extremely fast Python linter, written in Rust." -files = [ - {file = "ruff-0.1.3-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:b46d43d51f7061652eeadb426a9e3caa1e0002470229ab2fc19de8a7b0766901"}, - {file = "ruff-0.1.3-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:b8afeb9abd26b4029c72adc9921b8363374f4e7edb78385ffaa80278313a15f9"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca3cf365bf32e9ba7e6db3f48a4d3e2c446cd19ebee04f05338bc3910114528b"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4874c165f96c14a00590dcc727a04dca0cfd110334c24b039458c06cf78a672e"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eec2dd31eed114e48ea42dbffc443e9b7221976554a504767ceaee3dd38edeb8"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:dc3ec4edb3b73f21b4aa51337e16674c752f1d76a4a543af56d7d04e97769613"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2e3de9ed2e39160800281848ff4670e1698037ca039bda7b9274f849258d26ce"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1c595193881922cc0556a90f3af99b1c5681f0c552e7a2a189956141d8666fe8"}, - {file = "ruff-0.1.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f75e670d529aa2288cd00fc0e9b9287603d95e1536d7a7e0cafe00f75e0dd9d"}, - {file = "ruff-0.1.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:76dd49f6cd945d82d9d4a9a6622c54a994689d8d7b22fa1322983389b4892e20"}, - {file = "ruff-0.1.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:918b454bc4f8874a616f0d725590277c42949431ceb303950e87fef7a7d94cb3"}, - {file = "ruff-0.1.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d8859605e729cd5e53aa38275568dbbdb4fe882d2ea2714c5453b678dca83784"}, - {file = "ruff-0.1.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:0b6c55f5ef8d9dd05b230bb6ab80bc4381ecb60ae56db0330f660ea240cb0d4a"}, - {file = "ruff-0.1.3-py3-none-win32.whl", hash = "sha256:3e7afcbdcfbe3399c34e0f6370c30f6e529193c731b885316c5a09c9e4317eef"}, - {file = "ruff-0.1.3-py3-none-win_amd64.whl", hash = "sha256:7a18df6638cec4a5bd75350639b2bb2a2366e01222825562c7346674bdceb7ea"}, - {file = "ruff-0.1.3-py3-none-win_arm64.whl", hash = "sha256:12fd53696c83a194a2db7f9a46337ce06445fb9aa7d25ea6f293cf75b21aca9f"}, - {file = "ruff-0.1.3.tar.gz", hash = "sha256:3ba6145369a151401d5db79f0a47d50e470384d0d89d0d6f7fab0b589ad07c34"}, +summary = "An extremely fast Python linter and code formatter, written in Rust." +files = [ + {file = "ruff-0.1.4-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:864958706b669cce31d629902175138ad8a069d99ca53514611521f532d91495"}, + {file = "ruff-0.1.4-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:9fdd61883bb34317c788af87f4cd75dfee3a73f5ded714b77ba928e418d6e39e"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b4eaca8c9cc39aa7f0f0d7b8fe24ecb51232d1bb620fc4441a61161be4a17539"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a9a1301dc43cbf633fb603242bccd0aaa34834750a14a4c1817e2e5c8d60de17"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78e8db8ab6f100f02e28b3d713270c857d370b8d61871d5c7d1702ae411df683"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:80fea754eaae06335784b8ea053d6eb8e9aac75359ebddd6fee0858e87c8d510"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6bc02a480d4bfffd163a723698da15d1a9aec2fced4c06f2a753f87f4ce6969c"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9862811b403063765b03e716dac0fda8fdbe78b675cd947ed5873506448acea4"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58826efb8b3efbb59bb306f4b19640b7e366967a31c049d49311d9eb3a4c60cb"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fdfd453fc91d9d86d6aaa33b1bafa69d114cf7421057868f0b79104079d3e66e"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:e8791482d508bd0b36c76481ad3117987301b86072158bdb69d796503e1c84a8"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:01206e361021426e3c1b7fba06ddcb20dbc5037d64f6841e5f2b21084dc51800"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:645591a613a42cb7e5c2b667cbefd3877b21e0252b59272ba7212c3d35a5819f"}, + {file = "ruff-0.1.4-py3-none-win32.whl", hash = "sha256:99908ca2b3b85bffe7e1414275d004917d1e0dfc99d497ccd2ecd19ad115fd0d"}, + {file = "ruff-0.1.4-py3-none-win_amd64.whl", hash = "sha256:1dfd6bf8f6ad0a4ac99333f437e0ec168989adc5d837ecd38ddb2cc4a2e3db8a"}, + {file = "ruff-0.1.4-py3-none-win_arm64.whl", hash = "sha256:d98ae9ebf56444e18a3e3652b3383204748f73e247dea6caaf8b52d37e6b32da"}, + {file = "ruff-0.1.4.tar.gz", hash = "sha256:21520ecca4cc555162068d87c747b8f95e1e95f8ecfcbbe59e8dd00710586315"}, ] [[package]] name = "sentry-sdk" -version = "1.32.0" +version = "1.34.0" summary = "Python client for Sentry (https://sentry.io)" dependencies = [ "certifi", "urllib3>=1.26.11; python_version >= \"3.6\"", ] files = [ - {file = "sentry-sdk-1.32.0.tar.gz", hash = "sha256:935e8fbd7787a3702457393b74b13d89a5afb67185bc0af85c00cb27cbd42e7c"}, - {file = "sentry_sdk-1.32.0-py2.py3-none-any.whl", hash = "sha256:eeb0b3550536f3bbc05bb1c7e0feb3a78d74acb43b607159a606ed2ec0a33a4d"}, + {file = "sentry-sdk-1.34.0.tar.gz", hash = "sha256:e5d0d2b25931d88fa10986da59d941ac6037f742ab6ff2fce4143a27981d60c3"}, + {file = "sentry_sdk-1.34.0-py2.py3-none-any.whl", hash = "sha256:76dd087f38062ac6c1e30ed6feb533ee0037ff9e709974802db7b5dbf2e5db21"}, ] [[package]] @@ -1819,7 +1821,7 @@ files = [ [[package]] name = "web3" -version = "6.11.1" +version = "6.11.2" requires_python = ">=3.7.2" summary = "web3.py" dependencies = [ @@ -1840,8 +1842,8 @@ dependencies = [ "websockets>=10.0.0", ] files = [ - {file = "web3-6.11.1-py3-none-any.whl", hash = "sha256:0d39f58cbb0c652b45e711f01e01ec655117b47ba4eefd1f9550c52d205afa8c"}, - {file = "web3-6.11.1.tar.gz", hash = "sha256:d301d7120922d5b9e5c9535ef9780012ea25ea4011c2b177490ba7d3ef886b92"}, + {file = "web3-6.11.2-py3-none-any.whl", hash = "sha256:119e6e543aaac5e5d475ba8b54c71d3f8e357e4b94449ca236ea9d6ec009465e"}, + {file = "web3-6.11.2.tar.gz", hash = "sha256:77340b9a8109835a680950e09f21ae77e41ea38076215ab8be2ba4bee7b8034a"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index a078580bc..9e3d396ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "dipdup" description = "Modular framework for creating selective indexers and featureful backends for dapps" -version = "7.1.0" +version = "7.1.1" license = { text = "MIT" } authors = [ { name = "Lev Gorodetskii", email = "dipdup@drsr.io" }, diff --git a/requirements.dev.txt b/requirements.dev.txt index 4b4ef03e3..344ba1259 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -50,7 +50,7 @@ jinja2==3.1.2 jsonschema==4.17.3 jsonschema-spec==0.1.6 lazy-object-proxy==1.9.0 -lru-dict==1.2.0 +lru-dict==1.3.0 MarkupSafe==2.1.3 msgpack==1.0.5 multidict==6.0.4 @@ -68,7 +68,7 @@ platformdirs==3.10.0 pluggy==1.2.0 pprofile==2.1.0 prance==23.6.21.0 -prometheus-client==0.17.1 +prometheus-client==0.18.0 protobuf==4.24.1 pyarrow==12.0.1 pycryptodome==3.19.0 @@ -92,10 +92,10 @@ regex==2023.8.8 requests==2.31.0 rfc3339-validator==0.1.4 rlp==3.0.0 -ruamel-yaml==0.18.2 +ruamel-yaml==0.18.5 ruamel-yaml-clib==0.2.7 -ruff==0.1.3 -sentry-sdk==1.32.0 +ruff==0.1.4 +sentry-sdk==1.34.0 setuptools==68.2.2 six==1.16.0 sniffio==1.3.0 @@ -121,7 +121,7 @@ typing-extensions==4.7.1 tzlocal==5.0.1 urllib3==2.0.6 watchdog==3.0.0 -web3==6.11.1 +web3==6.11.2 websocket-client==1.6.1 websockets==10.4 yarl==1.9.2 diff --git a/requirements.txt b/requirements.txt index fae56e54c..7a94fb21d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -42,7 +42,7 @@ jinja2==3.1.2 jsonschema==4.17.3 jsonschema-spec==0.1.6 lazy-object-proxy==1.9.0 -lru-dict==1.2.0 +lru-dict==1.3.0 MarkupSafe==2.1.3 msgpack==1.0.5 multidict==6.0.4 @@ -57,7 +57,7 @@ pathable==0.4.3 pathspec==0.11.2 platformdirs==3.10.0 prance==23.6.21.0 -prometheus-client==0.17.1 +prometheus-client==0.18.0 protobuf==4.24.1 pyarrow==12.0.1 pycryptodome==3.19.0 @@ -75,9 +75,9 @@ regex==2023.8.8 requests==2.31.0 rfc3339-validator==0.1.4 rlp==3.0.0 -ruamel-yaml==0.18.2 +ruamel-yaml==0.18.5 ruamel-yaml-clib==0.2.7 -sentry-sdk==1.32.0 +sentry-sdk==1.34.0 setuptools==68.2.2 six==1.16.0 sniffio==1.3.0 @@ -90,6 +90,6 @@ tortoise-orm==0.19.3 typing-extensions==4.7.1 tzlocal==5.0.1 urllib3==2.0.6 -web3==6.11.1 +web3==6.11.2 websockets==10.4 yarl==1.9.2 diff --git a/src/demo_auction/pyproject.toml b/src/demo_auction/pyproject.toml index 47ee321fe..cc958c5d8 100644 --- a/src/demo_auction/pyproject.toml +++ b/src/demo_auction/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_auction" version = "0.0.1" diff --git a/src/demo_big_maps/pyproject.toml b/src/demo_big_maps/pyproject.toml index b37085ef1..2653807a3 100644 --- a/src/demo_big_maps/pyproject.toml +++ b/src/demo_big_maps/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_big_maps" version = "0.0.1" diff --git a/src/demo_blank/pyproject.toml b/src/demo_blank/pyproject.toml index b0ff29b20..3a52f5a44 100644 --- a/src/demo_blank/pyproject.toml +++ b/src/demo_blank/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_blank" version = "0.0.1" diff --git a/src/demo_dao/pyproject.toml b/src/demo_dao/pyproject.toml index 470f72a99..c94f01499 100644 --- a/src/demo_dao/pyproject.toml +++ b/src/demo_dao/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_dao" version = "0.0.1" diff --git a/src/demo_dex/pyproject.toml b/src/demo_dex/pyproject.toml index 67d81e4d0..cf0d30666 100644 --- a/src/demo_dex/pyproject.toml +++ b/src/demo_dex/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_dex" version = "0.0.1" diff --git a/src/demo_domains/pyproject.toml b/src/demo_domains/pyproject.toml index d40901cbc..d6e640805 100644 --- a/src/demo_domains/pyproject.toml +++ b/src/demo_domains/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_domains" version = "0.0.1" diff --git a/src/demo_events/pyproject.toml b/src/demo_events/pyproject.toml index 230f87535..8098494f0 100644 --- a/src/demo_events/pyproject.toml +++ b/src/demo_events/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_events" version = "0.0.1" diff --git a/src/demo_evm_events/pyproject.toml b/src/demo_evm_events/pyproject.toml index 6ccd40d2e..a27cf4316 100644 --- a/src/demo_evm_events/pyproject.toml +++ b/src/demo_evm_events/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_evm_events" version = "0.0.1" diff --git a/src/demo_factories/pyproject.toml b/src/demo_factories/pyproject.toml index ed99001be..8bc030c35 100644 --- a/src/demo_factories/pyproject.toml +++ b/src/demo_factories/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_factories" version = "0.0.1" diff --git a/src/demo_head/pyproject.toml b/src/demo_head/pyproject.toml index 445d940cc..b606e5aa9 100644 --- a/src/demo_head/pyproject.toml +++ b/src/demo_head/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_head" version = "0.0.1" diff --git a/src/demo_nft_marketplace/pyproject.toml b/src/demo_nft_marketplace/pyproject.toml index ba2b3fbb6..cf68b2c30 100644 --- a/src/demo_nft_marketplace/pyproject.toml +++ b/src/demo_nft_marketplace/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_nft_marketplace" version = "0.0.1" diff --git a/src/demo_raw/pyproject.toml b/src/demo_raw/pyproject.toml index 443364ead..86ce14d55 100644 --- a/src/demo_raw/pyproject.toml +++ b/src/demo_raw/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_raw" version = "0.0.1" diff --git a/src/demo_token/pyproject.toml b/src/demo_token/pyproject.toml index 3d22be73b..b307bd73b 100644 --- a/src/demo_token/pyproject.toml +++ b/src/demo_token/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_token" version = "0.0.1" diff --git a/src/demo_token_balances/pyproject.toml b/src/demo_token_balances/pyproject.toml index 145dc214d..0ccfb876c 100644 --- a/src/demo_token_balances/pyproject.toml +++ b/src/demo_token_balances/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_token_balances" version = "0.0.1" diff --git a/src/demo_token_transfers/pyproject.toml b/src/demo_token_transfers/pyproject.toml index 801deb846..2cc91d0f3 100644 --- a/src/demo_token_transfers/pyproject.toml +++ b/src/demo_token_transfers/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_token_transfers" version = "0.0.1" diff --git a/src/demo_uniswap/models/repo.py b/src/demo_uniswap/models/repo.py index 736fe328d..7a9f367cf 100644 --- a/src/demo_uniswap/models/repo.py +++ b/src/demo_uniswap/models/repo.py @@ -2,7 +2,7 @@ from typing import Any from typing import cast -from lru import LRU # type: ignore[import-not-found] +from lru import LRU import demo_uniswap.models as models from dipdup.config.evm import EvmContractConfig @@ -14,7 +14,7 @@ class ModelsRepo: def __init__(self) -> None: self._eth_usd: Decimal | None = None - self._pending_positions: dict[str, Any] = LRU(4096) + self._pending_positions: LRU[str, Any] = LRU(4096) async def get_eth_usd_rate(self) -> Decimal: if self._eth_usd is None: @@ -32,7 +32,7 @@ def save_pending_position(self, idx: str, position: dict[str, Any]) -> None: self._pending_positions[idx] = position def get_pending_position(self, idx: str) -> dict[str, Any] | None: - return self._pending_positions.get(idx, None) # type: ignore[no-any-return] + return self._pending_positions.get(idx, None) async def get_ctx_factory(ctx: HandlerContext) -> models.Factory: diff --git a/src/demo_uniswap/pyproject.toml b/src/demo_uniswap/pyproject.toml index 357a11c16..02422088d 100644 --- a/src/demo_uniswap/pyproject.toml +++ b/src/demo_uniswap/pyproject.toml @@ -1,4 +1,4 @@ -# Generated by DipDup 7.1.0+editable +# Generated by DipDup 7.1.1+editable [project] name = "demo_uniswap" version = "0.0.1" diff --git a/src/dipdup/performance.py b/src/dipdup/performance.py index 05ab7041a..b1ed117b3 100644 --- a/src/dipdup/performance.py +++ b/src/dipdup/performance.py @@ -27,7 +27,7 @@ from typing import cast from async_lru import alru_cache -from lru import LRU # type: ignore[import-not-found] +from lru import LRU from dipdup.exceptions import FrameworkException @@ -115,7 +115,7 @@ def add_model( try: maxsize = cls.Meta.maxsize # type: ignore[attr-defined] - self._model[cls.__name__] = LRU(maxsize) + self._model[cls.__name__] = LRU(maxsize) # type: ignore[assignment] except AttributeError: self._model[cls.__name__] = {} diff --git a/src/dipdup/projects/demo_uniswap/models/repo.py.j2 b/src/dipdup/projects/demo_uniswap/models/repo.py.j2 index 6e0171630..f97b68209 100644 --- a/src/dipdup/projects/demo_uniswap/models/repo.py.j2 +++ b/src/dipdup/projects/demo_uniswap/models/repo.py.j2 @@ -2,7 +2,7 @@ from decimal import Decimal from typing import Any from typing import cast -from lru import LRU # type: ignore[import-not-found] +from lru import LRU import {{ project.package }}.models as models from dipdup.config.evm import EvmContractConfig @@ -14,7 +14,7 @@ USDC_WETH_03_POOL = '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8' class ModelsRepo: def __init__(self) -> None: self._eth_usd: Decimal | None = None - self._pending_positions: dict[str, Any] = LRU(4096) + self._pending_positions: LRU[str, Any] = LRU(4096) async def get_eth_usd_rate(self) -> Decimal: if self._eth_usd is None: @@ -32,7 +32,7 @@ class ModelsRepo: self._pending_positions[idx] = position def get_pending_position(self, idx: str) -> dict[str, Any] | None: - return self._pending_positions.get(idx, None) # type: ignore[no-any-return] + return self._pending_positions.get(idx, None) async def get_ctx_factory(ctx: HandlerContext) -> models.Factory: From 8539c280ade80cae55a8479bbe7d3e73303f8ed6 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Mon, 6 Nov 2023 20:37:25 -0300 Subject: [PATCH 5/5] Update thanks page (#889) --- docs/15.thanks.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/15.thanks.md b/docs/15.thanks.md index 5a929b825..b662af4ce 100644 --- a/docs/15.thanks.md +++ b/docs/15.thanks.md @@ -34,6 +34,7 @@ We are grateful to all the people who help us with the project. - [pravind](https://github.com/pravind) - [Roman Novikov](https://github.com/mystdeim) - [Scott Simpson](https://github.com/scottincrypto) +- [shuoer86](https://github.com/shuoer86) - [Simon Bihel](https://github.com/sbihel) - [tomsib2001](https://github.com/tomsib2001)