Skip to content

Commit aa9441c

Browse files
Bump version 7.5.9 (#1070)
1 parent 4a5a120 commit aa9441c

File tree

19 files changed

+845
-152
lines changed

19 files changed

+845
-152
lines changed

.vscode/launch.json

Lines changed: 581 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
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.9] - 2024-07-20
88

99
### Fixed
1010

@@ -1447,6 +1447,7 @@ This release contains no changes except for the version number.
14471447

14481448
<!-- Versions -->
14491449
[Unreleased]: https://github.com/dipdup-io/dipdup/compare/7.5.8...HEAD
1450+
[7.5.9]: https://github.com/dipdup-io/dipdup/compare/7.5.8...7.5.9
14501451
[7.5.8]: https://github.com/dipdup-io/dipdup/compare/7.5.7...7.5.8
14511452
[7.5.7]: https://github.com/dipdup-io/dipdup/compare/7.5.6...7.5.7
14521453
[7.5.6]: https://github.com/dipdup-io/dipdup/compare/7.5.5...7.5.6

docs/10.supported-networks/0.overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: "Overview"
2+
title: "Overview"
33
description: "DipDup can index any EVM-compatible network as long as there's enough historical data. This page contains a list of supported networks and instructions on how to configure your indexer for them."
44
network: "ethereum"
55
---
66

77
<!-- markdownlint-disable no-bare-urls no-inline-html no-emphasis-as-heading -->
88

9-
_Latest update: 2024-06-01._
9+
_Updated 2024-07-18: Found and marked/fixed broken external links._
1010

1111
# Supported networks
1212

docs/10.supported-networks/36.polygon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Explorer: [Polygonscan](https://testnet-zkevm.polygonscan.com/)
5454
| datasource | status | URLs |
5555
| -----------------:|:------------- | -------------------------------------------------------------- |
5656
| **evm.subsquid** | 🟢 works | `https://v2.archive.subsquid.io/network/polygon-zkevm-testnet` |
57-
| **abi.etherscan** | 🟢 works | `https://api-testnet-zkevm.polygonscan.com/api` |
57+
| **abi.etherscan** | 🟢 works | `https://api-testnet-zkevm.polygonscan.com/api` (🔴 404) |
5858
| **evm.node** | 🤔 not tested | |
5959

6060
### Polygon zkEVM Cardona Testnet

docs/10.supported-networks/43.taiko.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ description: "Taiko network support"
1111

1212
### Taiko Katla
1313

14-
Explorer: [Blockscout](https://explorer.katla.taiko.xyz/)
14+
Explorer: [Blockscout](https://explorer.katla.taiko.xyz/) (🔴 404)
1515

16-
| datasource | status | URLs |
17-
| -----------------:|:------------ | -------------------------------------- |
18-
| **evm.subsquid** | 🔴 no API | N/A |
19-
| **abi.etherscan** | 🟢 works | `https://explorer.katla.taiko.xyz/api` |
20-
| **evm.node** | 🟡 HTTP only | `https://rpc.katla.taiko.xyz` |
16+
| datasource | status | URLs |
17+
| -----------------:|:------------ | ----------------------------------------------- |
18+
| **evm.subsquid** | 🔴 no API | N/A |
19+
| **abi.etherscan** | 🟢 works | `https://explorer.katla.taiko.xyz/api` (🔴 404) |
20+
| **evm.node** | 🟡 HTTP only | `https://rpc.katla.taiko.xyz` |

docs/10.supported-networks/44.tanssi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description: "Tanssi network support"
99

1010
{{ #include 10.supported-networks/_intro.md }}
1111

12-
Explorer: [Blockscout](https://3001-blockscout.a.dancebox.tanssi.network)
12+
Explorer: [Blockscout](https://3001-blockscout.a.dancebox.tanssi.network) (🔴 404)
1313

14-
| datasource | status | URLs |
15-
| -----------------:|:------------- | ------------------------------------------------------- |
16-
| **evm.subsquid** | 🟢 works | `https://v2.archive.subsquid.io/network/tanssi` |
17-
| **abi.etherscan** | 🤔 not tested | `https://3001-blockscout.a.dancebox.tanssi.network/api` |
18-
| **evm.node** | 🤔 not tested | |
14+
| datasource | status | URLs |
15+
| -----------------:|:------------- | ---------------------------------------------------------------- |
16+
| **evm.subsquid** | 🟢 works | `https://v2.archive.subsquid.io/network/tanssi` |
17+
| **abi.etherscan** | 🟢 works | `https://3001-blockscout.a.dancebox.tanssi.network/api` (🔴 404) |
18+
| **evm.node** | 🤔 not tested | |

docs/10.supported-networks/7.bitgert.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ description: "Bitgert network support"
77

88
# Bitgert
99

10-
{{ #include 10.supported-networks/_intro.md }}
11-
1210
### Bitgert Mainnet
1311

1412
Explorer: [Brisescan](https://brisescan.com/)
@@ -21,7 +19,7 @@ Explorer: [Brisescan](https://brisescan.com/)
2119

2220
### Bitgert Testnet
2321

24-
Explorer: [Brisescan](https://testnet-explorer.brisescan.com/)
22+
Explorer: [Brisescan](https://testnet-explorer.brisescan.com/) (🔴 502)
2523

2624
| datasource | status | URLs |
2725
| -----------------:|:------------ | -------------------------------------------------------- |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
navigation.title: "Supported Networks"
2-
navigation.icon: "zap"
2+
navigation.icon: "link"
33
navigation.subdir: true
44
navigation.pin: true
55
navigation.network: "ethereum"

docs/14.contributing.md

Lines changed: 43 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,66 @@ DipDup is a free and open-source software licensed under the [MIT License](#mit-
1010

1111
## Contributor Guide
1212

13+
Thanks for considering contributing to DipDup! We're happy to have you here. This document is meant to help you get started with the project. If you have any questions, feel free to open an issue on [GitHub](https://github.com/dipdup-io/dipdup/issues/new/choose) or join our [Discord server](https://discord.gg/aG8XKuwsQd). Have fun!
14+
15+
### Workflow
16+
17+
1. Fork the repository, clone it, and `git checkout next`.
18+
2. Create a new branch with `git checkout -b <your-branch-name>`.
19+
3. Make your changes. Run `make format lint` to perform basic code checks.
20+
4. When finished, push your branch with `git push origin --set-upstream <your-branch-name>`.
21+
5. Create a pull request to merge `<your-branch-name>` into `next`. Maintainers will review your pull request and may make comments, ask questions, or request changes. When all feedback has been addressed the pull request will be approved, and after all checks have passed it will be merged by a maintainer.
22+
23+
### Development environment
24+
25+
You'll need Python 3.12 and PDM package manager to run DipDup locally. To set up the development environment, run `pdm venv create python3.12 && pdm sync && $(pdm venv activate)`. To see the list of development commands, run `make help`.
26+
27+
## Maintainer Guide
28+
29+
::banner{type="warning"}
30+
This section is intended for DipDup maintainers only! If you're a regular contributor, you don't need to read it (but welcome to do so).
31+
::
32+
1333
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
1434

1535
### General
1636

1737
- All code in this repository MUST be licensed under the [MIT License](#mit-license).
18-
- Python code in this repository MUST run on Python 3.11. Using modern language features is encouraged.
19-
- Python code in this repository MUST run in Linux, macOS, Docker, and environments on `amd64` and `arm64` architectures.
20-
- We use the PDM package manager to set up the development environment. You SHOULD install it and run `pdm run -l` to see available shortcuts.
21-
- Have fun!
38+
- Python code in this repository MUST run on Python 3.12. Using modern language features is encouraged.
39+
- Python code in this repository MUST run in Linux, macOS, and Docker environments, and on `amd64`, `arm64` architectures. CI will help you with that.
2240

2341
### Git workflow
2442

25-
- Branch names MUST follow `prefix/short-description` format. Prefixes currently in use: `feat` for features, `fix` for bugfixes, `docs` for documentation, `exp` for experiments, `ci` for GHA and Docker stuff, `aux` for everything else.
43+
- Default branches are `next` for the latest release and `current` for the previous one. `next` is the default branch for pull requests.
44+
- Branch names SHOULD follow the `prefix/short-description` format. Prefixes currently in use: `feat` for features, `fix` for bugfixes, `docs` for documentation, `exp` for experiments, `ref` for refactoring, `ci` for GitHub Actions, scripts and Docker stuff, `aux` for everything else.
2645
- Commits in pull requests MUST be squashed when merging to `next`.
2746
- Issues and pull requests MUST have a descriptive title; they SHOULD be linked to each other, appropriately labeled, and assigned to maintainers while in progress.
2847

2948
### Codestyle
3049

31-
We use several tools to enforce codestyle and code quality: `black` for autoformatting, `ruff` for linting, and `mypy` for typechecking. All checks MUST pass before merging the code to the default branch. Everything not enforced by these tools is up to the developer. But here are some recommendations:
50+
We use several tools to enforce the code style and decent code quality: `black` for autoformatting, `ruff` for linting, and `mypy` for type checking. All checks MUST pass before the code is merged to the default branch. Anything not enforced by these tools is up to the developer. But here are some recommendations:
3251

33-
- Consistency is the key. If you see a pattern in the codebase, follow it.
34-
- Use `NOTE`, `TODO`, and `FIXME` prefixes for meaningful comments. They help a lot to navigate the codebase.
35-
- Lazy imports are important to keep startup time low for tiny commands. We also do it for project imports, so not a big deal.
36-
- Some methods and attributes are made private to avoid polluting the public API. Feel free to access them from the outside if you know what you are doing.
37-
- Finally, about exact language features. f-string formatting is preferred over other syntax. Be careful with the walrus operator. Don't forget else in conditional expressions. Listen to your mom. We have no consensus about the match-case yet.
52+
- Consistency is the key. If you see a pattern in the codebase, follow it. Use meaningful names for variables, and avoid abbreviations.
53+
- Use `NOTE/TODO/FIXME` prefixes for meaningful comments, Avoid inline comments. It helps a lot in navigating the codebase.
54+
- Lazy imports are important to keep startup time low for tiny commands. We also do this for project imports.
55+
- Some methods and attributes are made private to avoid cluttering the public API. Feel free to access them from the outside if you know what you are doing.
56+
- Finally, about exact language features. f-string formatting is preferred over other syntax. Be careful with the walrus operator. Don't forget `else` in conditional expressions. Listen to your mom. We do not yet have a consensus on match-case.
3857

3958
### Changelog
4059

41-
- All changes that affect user (developer) experience MUST be documented in the CHANGELOG.md file.
42-
- Changes that significantly affect DipDup maintainers' experience MAY be documented in the CHANGELOG.md file.
43-
- The changelog MUST conform to the "Keep a Changelog" specification (CI will break otherwise). Group order we use: Added, Fixed, Changed, Deprecated, Removed, Performance, Security, Other.
44-
- Lines describing changes MUST be sorted and begin with the component name (usually Python module name).
60+
- All changes that affect the user (developer) experience MUST be documented in the CHANGELOG.md file.
61+
- The changelog MUST follow the "Keep a Changelog" specification (CI will break otherwise). Group order we use: Added, Fixed, Changed, Deprecated, Removed, Performance, Security, Other.
62+
- Lines describing changes MUST be sorted and start with the component name (usually the Python module name).
4563

4664
### Documentation
4765

48-
- A page in "Release notes" section MUST accompany all major releases. Minor releases SHOULD be documented as well. Avoid includes in Release notes pages as they are not intended to change over time.
49-
50-
## Maintainer Guide
66+
- We have a pretty complex process of building and deploying docs. It starts with Markdown files in the `docs` directory. Then `scripts/docs.py` script generates several dynamic pages, API references, processes custom Cookiecutter-style macros, and so on. The resulting Markdown is pushed to the private frontend repository via the `docs.yml` GitHub Action. `docs.py` script code should answer most of your questions.
67+
- All public APIs MUST be documented using docstrings. We use the reStructuredText (reST) syntax.
68+
- A page in the "Release notes" section MUST accompany all major and minor releases. Avoid using `#include` macro in Release notes as they should not change after the publication.
5169

5270
### Dependencies
5371

54-
- All dependencies MUST be declared in `pyproject.toml` file and pinned to non-breaking versions (e.g. `~1.2`).
72+
- All dependencies MUST be declared in `pyproject.toml` file and pinned to non-breaking versions. We are more of an application than a library, so no asterisks, please.
5573

5674
### Security
5775

@@ -69,38 +87,32 @@ We use several tools to enforce codestyle and code quality: `black` for autoform
6987
- Docker images for stable releases MUST be published on Docker Hub and GitHub Container Registry.
7088
- Maintainers MAY publish arbitrary images on GHCR and remove them when not needed.
7189

72-
### Installer
73-
74-
- Installer module MUST depend on Python stdlib only.
75-
7690
### Scaffolding
7791

7892
- Project templates SHOULD cover all index types available in DipDup.
7993
- They also MAY contain additional features and integrations.
8094

8195
### Demo projects
8296

83-
- Demos are stored in `src` directory. They MUST be generated automatically from project templates using replay files.
97+
- Demos are stored in the `src` directory. They MUST be generated automatically from project templates using replay files.
8498
- Maintainers SHOULD run `pdm demos` command regularly to ensure that demo projects are up to date.
8599

86100
### Releases
87101

88102
- Release versions MUST conform to [Semantic Versioning](https://semver.org/). Releases that introduce breaking changes MUST be major ones.
89-
- Only the latest major version is supported in general. Important fixes SHOULD be backported to the previous major release (currently, 6.5)
103+
- The latest major version is the only one supported in general. Important fixes SHOULD be backported to the previous major release.
104+
105+
### Release process
90106

91107
Releasing a new version currently requires some manual actions:
92108

93109
1. Ensure that all GH issues and PRs are closed and linked to the milestone.
94-
2. Checkout to `aux/X.Y.Z` branch from `next` (or `master` for 6.5). Update DipDup version in `pyproject.toml`.
110+
2. Checkout to `aux/X.Y.Z` branch from `next` (or `current` for backports). Update DipDup version in `pyproject.toml`.
95111
3. Run `make before_release` to lock dependencies, dump `requirements.txt` files, generate demo projects etc.
96112
4. Commit and push all changes with msg like `Bump version X.Y.Z`. Open a PR, and link it to the milestone.
97113
5. Now you may want to switch Docker images of demos we host to `aux-X.Y.Z` tag as a smoke test.
98114
6. Merge the PR, then `git tag X.Y.Z && git push origin X.Y.Z`. Wait for `release.yml` and `docs.yml` pipelines to finish.
99-
100-
### 6.5 branch
101-
102-
- DipDup 6.5 is supported until March 2024. Maintainers MUST backport bugfixes from the main branch until then. All Tezos and TzKT-related code was synced with `next`, so it should be a relatively easy task.
103-
- 6.5 docs and installer are hosted on GH Pages at `docs.dipdup.io`.
115+
7. Don't forget an announcement on Twitter and Discord.
104116

105117
## MIT License
106118

docs/7.references/3.context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ description: "Context reference"
7575
<dl class="field-list simple">
7676
<dt class="field-odd" style="color: var(--txt-primary);">Parameters<span class="colon">:</span></dt>
7777
<dd class="field-odd"><ul class="simple">
78-
<li><p><strong>kind</strong> (<em>Literal</em><em>[</em><em>'tezos'</em><em>] </em><em>| </em><em>~typing.Literal</em><em>[</em><em>'evm'</em><em>]</em>) – Either ‘tezos’ or ‘evm’ allowed</p></li>
78+
<li><p><strong>kind</strong> (<em>Literal</em><em>[</em><em>'tezos'</em><em>, </em><em>'evm'</em><em>]</em>) – Either ‘tezos’ or ‘evm’ allowed</p></li>
7979
<li><p><strong>name</strong> (<em>str</em>) – Contract name</p></li>
8080
<li><p><strong>address</strong> (<em>str</em><em> | </em><em>None</em>) – Contract address</p></li>
8181
<li><p><strong>typename</strong> (<em>str</em><em> | </em><em>None</em>) – Alias for the contract script</p></li>

0 commit comments

Comments
 (0)