Skip to content

Commit

Permalink
Bump version 7.5.3 (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Mar 27, 2024
1 parent 722e3c2 commit 20e2f8d
Show file tree
Hide file tree
Showing 33 changed files with 71 additions and 88 deletions.
2 changes: 1 addition & 1 deletion 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.5.3] - 2024-03-28

### Fixed

Expand Down
36 changes: 18 additions & 18 deletions docs/8.examples/_demos_table.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!-- markdownlint-disable first-line-h1 -->
| name | network | description | source |
|-|-|-|-|
| demo_blank | | Empty config for a fresh start | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_blank) |
| demo_evm_events | EVM | ERC-20 token transfers (from event logs) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_evm_events) |
| demo_evm_transactions | EVM | ERC-20 token transfers (from transactions) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_evm_transactions) |
| demo_uniswap | EVM | Uniswap V3 pools, positions, etc. (advanced, uses TimescaleDB) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_uniswap) |
| demo_auction | Tezos | NFT marketplace (TzColors) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_auction) |
| demo_big_maps | Tezos | Indexing specific big maps | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_big_maps) |
| demo_dao | Tezos | DAO registry (Homebase DAO) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_dao) |
| demo_dex | Tezos | DEX balances and liquidity (Quipuswap) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_dex) |
| demo_domains | Tezos | Domain name service (Tezos Domains) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_domains) |
| demo_etherlink | Tezos | Etherlink smart rollup transactions | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_etherlink) |
| demo_events | Tezos | Processing contract events | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_events) |
| demo_factories | Tezos | Example of spawning indexes in runtime | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_factories) |
| demo_head | Tezos | Processing head block metadata (realtime only) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_head) |
| demo_nft_marketplace | Tezos | NFT marketplace (hic at nunc) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_nft_marketplace) |
| demo_raw | Tezos | Process raw operations without filtering and typed payloads | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_raw) |
| demo_token | Tezos | FA1.2 token contract operations | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_token) |
| demo_token_balances | Tezos | FA1.2 token balances | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_token_balances) |
| demo_token_transfers | Tezos | FA1.2 token transfers | [link](https://github.com/dipdup-io/dipdup/tree/7.5.2/src/demo_token_transfers) |
| demo_blank | | Empty config for a fresh start | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_blank) |
| demo_evm_events | EVM | ERC-20 token transfers (from event logs) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_evm_events) |
| demo_evm_transactions | EVM | ERC-20 token transfers (from transactions) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_evm_transactions) |
| demo_uniswap | EVM | Uniswap V3 pools, positions, etc. (advanced, uses TimescaleDB) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_uniswap) |
| demo_auction | Tezos | NFT marketplace (TzColors) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_auction) |
| demo_big_maps | Tezos | Indexing specific big maps | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_big_maps) |
| demo_dao | Tezos | DAO registry (Homebase DAO) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_dao) |
| demo_dex | Tezos | DEX balances and liquidity (Quipuswap) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_dex) |
| demo_domains | Tezos | Domain name service (Tezos Domains) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_domains) |
| demo_etherlink | Tezos | Etherlink smart rollup transactions | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_etherlink) |
| demo_events | Tezos | Processing contract events | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_events) |
| demo_factories | Tezos | Example of spawning indexes in runtime | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_factories) |
| demo_head | Tezos | Processing head block metadata (realtime only) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_head) |
| demo_nft_marketplace | Tezos | NFT marketplace (hic at nunc) | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_nft_marketplace) |
| demo_raw | Tezos | Process raw operations without filtering and typed payloads | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_raw) |
| demo_token | Tezos | FA1.2 token contract operations | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_token) |
| demo_token_balances | Tezos | FA1.2 token balances | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_token_balances) |
| demo_token_transfers | Tezos | FA1.2 token transfers | [link](https://github.com/dipdup-io/dipdup/tree/7.5.3/src/demo_token_transfers) |
1 change: 1 addition & 0 deletions docs/9.release-notes/_7.5_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- evm.node: Respect `http.batch_size` when fetching block headers.
- evm.subsquid.transactions: Fixed issue with `node_only` flag ignored.
- tezos.tzkt.operations: Fixed crash when handler definition contains optional items.
- tezos.tzkt.operations: Fixed missing operations when handler pattern contains item without entrypoint.

### Performance

Expand Down
44 changes: 22 additions & 22 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.5.2"
version = "7.5.3"
license = { text = "MIT" }
authors = [
{ name = "Lev Gorodetskii", email = "[email protected]" },
Expand Down
4 changes: 2 additions & 2 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pysignalr==1.0.0
pytest==7.4.4
pytest-aiohttp==1.0.5
pytest-asyncio==0.23.6
pytest-cov==4.1.0
pytest-cov==5.0.0
pytest-xdist==3.5.0
python-dotenv==1.0.1
pytz==2024.1
Expand All @@ -90,7 +90,7 @@ rlp==4.0.0
rpds-py==0.17.1
ruamel-yaml==0.18.6
ruamel-yaml-clib==0.2.8; platform_python_implementation == "CPython" and python_version < "3.13"
ruff==0.3.3
ruff==0.3.4
sentry-sdk==1.43.0
setuptools==69.2.0
six==1.16.0
Expand Down
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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_dao"
version = "0.0.1"
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dex/handlers/on_fa12_tez_to_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async def on_fa12_tez_to_token(
token_quantity = Decimal(transfer.parameter.value) / (10**decimals)
assert tez_to_token_payment.data.amount is not None
tez_quantity = Decimal(tez_to_token_payment.data.amount) / (10**6)
if min_token_quantity > token_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_token_quantity, token_quantity)
return
assert min_token_quantity <= token_quantity, tez_to_token_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dex/handlers/on_fa12_token_to_tez.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async def on_fa12_token_to_tez(
token_quantity = Decimal(token_to_tez_payment.parameter.amount) / (10**decimals)
assert transaction_0.amount is not None
tez_quantity = Decimal(transaction_0.amount) / (10**6)
if min_tez_quantity > tez_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_tez_quantity, tez_quantity)
return
assert min_tez_quantity <= tez_quantity, token_to_tez_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dex/handlers/on_fa2_tez_to_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async def on_fa2_tez_to_token(
assert tez_to_token_payment.data.amount is not None
token_quantity = sum(Decimal(tx.amount) for tx in transfer.parameter.__root__[0].txs) / (10**decimals)
tez_quantity = Decimal(tez_to_token_payment.data.amount) / (10**6)
if min_token_quantity > token_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_token_quantity, token_quantity)
return
assert min_token_quantity <= token_quantity, tez_to_token_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dex/handlers/on_fa2_token_to_tez.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async def on_fa2_token_to_tez(
token_quantity = Decimal(token_to_tez_payment.parameter.amount) / (10**decimals)
assert transaction_0.amount is not None
tez_quantity = Decimal(transaction_0.amount) / (10**6)
if min_tez_quantity > tez_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_tez_quantity, tez_quantity)
return
assert min_tez_quantity <= tez_quantity, token_to_tez_payment.data.hash

trade = models.Trade(
symbol=symbol,
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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_domains"
version = "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_etherlink/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by DipDup 7.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_etherlink"
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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_evm_events"
version = "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_transactions/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by DipDup 7.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_evm_transactions"
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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+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.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_token_transfers"
version = "0.0.1"
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.5.2+editable
# Generated by DipDup 7.5.3+editable
[project]
name = "demo_uniswap"
version = "0.0.1"
Expand Down
2 changes: 0 additions & 2 deletions src/dipdup/indexes/tezos_tzkt_operations/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ async def get_transaction_filters(
if code_hash := pattern_config.destination.resolved_code_hash:
hashes.add(code_hash)

_logger.info('Fetching transactions from %s addresses and %s code hashes', len(addresses), len(hashes))
return addresses, hashes


Expand Down Expand Up @@ -127,7 +126,6 @@ async def get_origination_filters(
if code_hash := pattern_config.source.resolved_code_hash:
raise FrameworkException('Invalid transaction filter `source.code_hash`')

_logger.info('Fetching originations from %s addresses and %s code hashes', len(addresses), len(hashes))
return addresses, hashes


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async def on_fa12_tez_to_token(
token_quantity = Decimal(transfer.parameter.value) / (10**decimals)
assert tez_to_token_payment.data.amount is not None
tez_quantity = Decimal(tez_to_token_payment.data.amount) / (10**6)
if min_token_quantity > token_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_token_quantity, token_quantity)
return
assert min_token_quantity <= token_quantity, tez_to_token_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async def on_fa12_token_to_tez(
token_quantity = Decimal(token_to_tez_payment.parameter.amount) / (10**decimals)
assert transaction_0.amount is not None
tez_quantity = Decimal(transaction_0.amount) / (10**6)
if min_tez_quantity > tez_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_tez_quantity, tez_quantity)
return
assert min_tez_quantity <= tez_quantity, token_to_tez_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async def on_fa2_tez_to_token(
assert tez_to_token_payment.data.amount is not None
token_quantity = sum(Decimal(tx.amount) for tx in transfer.parameter.__root__[0].txs) / (10**decimals)
tez_quantity = Decimal(tez_to_token_payment.data.amount) / (10**6)
if min_token_quantity > token_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_token_quantity, token_quantity)
return
assert min_token_quantity <= token_quantity, tez_to_token_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async def on_fa2_token_to_tez(
token_quantity = Decimal(token_to_tez_payment.parameter.amount) / (10**decimals)
assert transaction_0.amount is not None
tez_quantity = Decimal(transaction_0.amount) / (10**6)
if min_tez_quantity > tez_quantity:
ctx.logger.warning('output is lower than `min_out` (%s > %s)', min_tez_quantity, tez_quantity)
return
assert min_tez_quantity <= tez_quantity, token_to_tez_payment.data.hash

trade = models.Trade(
symbol=symbol,
Expand Down

0 comments on commit 20e2f8d

Please sign in to comment.