Skip to content

Commit

Permalink
Bump version 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Aug 12, 2024
1 parent 5e05bd6 commit 7f76144
Show file tree
Hide file tree
Showing 87 changed files with 140 additions and 139 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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].

## [8.0.0] - ????-??-??

This release contains no changes except for the version number.

## [8.0.0b5] - 2024-08-09

### Added
Expand Down Expand Up @@ -1567,7 +1571,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/8.0.0b5...HEAD
[Unreleased]: https://github.com/dipdup-io/dipdup/compare/8.0.0...HEAD
[8.0.0]: https://github.com/dipdup-io/dipdup/compare/8.0.0b5...8.0.0
[8.0.0b5]: https://github.com/dipdup-io/dipdup/compare/8.0.0b4...8.0.0b5
[8.0.0b4]: https://github.com/dipdup-io/dipdup/compare/8.0.0b3...8.0.0b4
[8.0.0b3]: https://github.com/dipdup-io/dipdup/compare/8.0.0b2...8.0.0b3
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
SHELL=/bin/bash
SHELL=/usr/bin/zsh
DEMO=demo_evm_events

run_in_memory:
time dipdup -c ../src/${DEMO} -c ./oneshot_${DEMO}.yaml run

run_in_postgres:
touch ../src/${DEMO}/deploy/test.env && \
echo "HASURA_SECRET=test" > ../src/${DEMO}/deploy/test.env && \
echo "POSTGRES_PASSWORD=test" >> ../src/${DEMO}/deploy/test.env && \
cd ../src/${DEMO}/deploy && docker-compose --env-file test.env up -d db
touch ../src/${DEMO}/deploy/.env && \
echo "HASURA_SECRET=test" > ../src/${DEMO}/deploy/.env && \
echo "POSTGRES_PASSWORD=test" >> ../src/${DEMO}/deploy/.env && \
cd ../src/${DEMO}/deploy && docker-compose --env-file .env up -d db

export POSTGRES_PORT=`docker port ${DEMO}-db-1 5432 | cut -d: -f2` && \
time dipdup -c ../src/${DEMO} -c ./oneshot_${DEMO}.yaml -c ./local_postgres.yaml run

down:
cd ../src/${DEMO}/deploy && docker-compose down && rm test.env
cd ../src/${DEMO}/deploy && docker-compose down && rm .env
docker volume rm -f ${DEMO}_db

cpu_up:
Expand Down
18 changes: 9 additions & 9 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ See the Makefile for details.
- interval: 10,000,000 to 10,100,000 (100,000 levels, 93,745 non-empty)
- database: in-memory sqlite

| run | time | bps | vs. asyncio | vs. 7.5 |
| ---------------- | ---------------------------------------------------- | --- | ----------- | ------- |
| 7.5.9, asyncio | 1044,56s user 258,07s system 102% cpu 21:06,02 total | 79 | | |
| 7.5.10, uvloop | 924,94s user 182,33s system 102% cpu 18:04,67 total | 92 | 1.15 | |
| 8.0.0b4, asyncio | 832,32s user 163,20s system 101% cpu 16:19,93 total | 102 | | 1.29 |
| 8.0.0b5, uvloop | 730,58s user 88,67s system 98% cpu 13:48,46 total | 121 | 1.18 | 1.31 |
| run | time | bps | vs. asyncio | vs. 7.5 |
| ---------------- | ---------------------------------------------------- | --------- | ----------- | ------- |
| 7.5.9, asyncio | 1044,56s user 258,07s system 102% cpu 21:06,02 total | 79 | | |
| 7.5.10, uvloop | 924,94s user 182,33s system 102% cpu 18:04,67 total | 92 | 1.15 | |
| 8.0.0b4, asyncio | 832,32s user 163,20s system 101% cpu 16:19,93 total | 102 | | 1.29 |
| 8.0.0b5, uvloop | 721,13s user 84,17s system 98% cpu 13:33,88 total | 123 (116) | 1.18 | 1.31 |

#### Without CPU boost

Expand All @@ -66,9 +66,9 @@ In the subsequent runs, we will skip the 7.5 branch; speedup vs 8.0 is pretty st

#### With PostgreSQL

| run | time | bps | vs. in-memory |
| --------------- | --------------------------------------------- | --- | ------------- |
| 8.0.0b5, uvloop | real 36m30,878s user 17m23,406s sys 3m38,196s | 46 | 0.38 |
| run | time | bps | vs. in-memory |
| --------------- | --------------------------------------------------- | ------- | ------------- |
| 8.0.0b5, uvloop | 1083,66s user 214,23s system 57% cpu 37:33,04 total | 46 (42) | 0.36 |

### starknet.events

Expand Down
38 changes: 19 additions & 19 deletions docs/8.examples/_demos_table.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<!-- 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/8.0.0b5/src/demo_blank) |
| demo_evm_events | EVM | ERC-20 token transfers (from event logs) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_evm_events) |
| demo_evm_transactions | EVM | ERC-20 token transfers (from transactions) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_evm_transactions) |
| demo_evm_uniswap | EVM | Uniswap V3 pools, positions, etc. (advanced, uses TimescaleDB) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_evm_uniswap) |
| demo_starknet_events | Starknet | ERC-20 token transfers (from events) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_starknet_events) |
| demo_tezos_auction | Tezos | NFT marketplace (TzColors) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_auction) |
| demo_tezos_big_maps | Tezos | Indexing specific big maps | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_big_maps) |
| demo_tezos_dao | Tezos | DAO registry (Homebase DAO) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_dao) |
| demo_tezos_dex | Tezos | DEX balances and liquidity (Quipuswap) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_dex) |
| demo_tezos_domains | Tezos | Domain name service (Tezos Domains) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_domains) |
| demo_tezos_etherlink | Tezos | Etherlink smart rollup transactions | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_etherlink) |
| demo_tezos_events | Tezos | Processing contract events | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_events) |
| demo_tezos_factories | Tezos | Example of spawning indexes in runtime | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_factories) |
| demo_tezos_head | Tezos | Processing head block metadata (realtime only) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_head) |
| demo_tezos_nft_marketplace | Tezos | NFT marketplace (hic at nunc) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_nft_marketplace) |
| demo_tezos_raw | Tezos | Process raw operations without filtering and typed payloads | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_raw) |
| demo_tezos_token | Tezos | FA1.2 token contract operations | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_token) |
| demo_tezos_token_balances | Tezos | FA1.2 token balances | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_token_balances) |
| demo_tezos_token_transfers | Tezos | FA1.2 token transfers | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0b5/src/demo_tezos_token_transfers) |
| demo_blank | | Empty config for a fresh start | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_blank) |
| demo_evm_events | EVM | ERC-20 token transfers (from event logs) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_evm_events) |
| demo_evm_transactions | EVM | ERC-20 token transfers (from transactions) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_evm_transactions) |
| demo_evm_uniswap | EVM | Uniswap V3 pools, positions, etc. (advanced, uses TimescaleDB) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_evm_uniswap) |
| demo_starknet_events | Starknet | ERC-20 token transfers (from events) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_starknet_events) |
| demo_tezos_auction | Tezos | NFT marketplace (TzColors) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_auction) |
| demo_tezos_big_maps | Tezos | Indexing specific big maps | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_big_maps) |
| demo_tezos_dao | Tezos | DAO registry (Homebase DAO) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_dao) |
| demo_tezos_dex | Tezos | DEX balances and liquidity (Quipuswap) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_dex) |
| demo_tezos_domains | Tezos | Domain name service (Tezos Domains) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_domains) |
| demo_tezos_etherlink | Tezos | Etherlink smart rollup transactions | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_etherlink) |
| demo_tezos_events | Tezos | Processing contract events | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_events) |
| demo_tezos_factories | Tezos | Example of spawning indexes in runtime | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_factories) |
| demo_tezos_head | Tezos | Processing head block metadata (realtime only) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_head) |
| demo_tezos_nft_marketplace | Tezos | NFT marketplace (hic at nunc) | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_nft_marketplace) |
| demo_tezos_raw | Tezos | Process raw operations without filtering and typed payloads | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_raw) |
| demo_tezos_token | Tezos | FA1.2 token contract operations | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_token) |
| demo_tezos_token_balances | Tezos | FA1.2 token balances | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_token_balances) |
| demo_tezos_token_transfers | Tezos | FA1.2 token transfers | [link](https://github.com/dipdup-io/dipdup/tree/8.0.0/src/demo_tezos_token_transfers) |
6 changes: 1 addition & 5 deletions docs/9.release-notes/1.v8.0.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
title: 8.0.0b3
title: 8.0.0
description: DipDup 8.0 release notes
---

# Release Notes: 8.0

::banner{type="warning"}
This page describes pre-release version of DipDup. API and features are subject to change.
::

Welcome to DipDup 8.0 release notes! This major release expands DipDup's functionality and improves indexing performance and developer experience. Key highlights of this release are:

- Starknet support 🐺
Expand Down
33 changes: 16 additions & 17 deletions pdm.lock

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

5 changes: 3 additions & 2 deletions 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 = "8.0.0b5"
version = "8.0.0"
license = { text = "MIT" }
authors = [
{ name = "Lev Gorodetskii", email = "[email protected]" },
Expand Down Expand Up @@ -57,7 +57,8 @@ dependencies = [
"tortoise-orm==0.21.5",
"web3~=6.19",
#
"aiohttp~=3.9",
# FIXME: KeyError in _make_or_get_ssl_context
"aiohttp==3.10.2",
"aiolimiter~=1.0",
"anyio~=4.1",
"APScheduler~=3.8",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Please do not edit it manually.

aiohappyeyeballs==2.3.5
aiohttp==3.10.2
aiohttp==3.10.3
aiolimiter==1.1.0
aiosignal==1.3.1
aiosqlite==0.20.0
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 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_blank"
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 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_evm_events"
version = "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_events/types/eth_usdt/evm_events/transfer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

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 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_evm_transactions"
version = "0.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_evm_uniswap"
version = "0.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/burn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/collect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/flash.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/initialize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/mint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/types/pool/evm_events/swap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_starknet_events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_starknet_events"
version = "0.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_auction/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_tezos_auction"
version = "0.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_big_maps/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0
[project]
name = "demo_tezos_big_maps"
version = "0.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# generated by DipDup 8.0.0b5
# generated by DipDup 8.0.0

from __future__ import annotations

Expand Down
Loading

0 comments on commit 7f76144

Please sign in to comment.