Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version 7.1.1 #888

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

<!-- Versions -->
[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
Expand Down
132 changes: 67 additions & 65 deletions pdm.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" },
Expand Down
12 changes: 6 additions & 6 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/demo_auction/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_big_maps/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_blank/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_dao/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_dex/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_domains/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_factories/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_head/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_nft_marketplace/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_raw/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_token/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_token_balances/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_token_transfers/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/demo_uniswap/models/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_uniswap/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/dipdup/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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__] = {}

Expand Down
6 changes: 3 additions & 3 deletions src/dipdup/projects/demo_uniswap/models/repo.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down