Skip to content

Commit

Permalink
finish 7.2 notes, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Nov 24, 2023
1 parent a3bc423 commit 46ce2f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docs/12.faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,3 @@ Don't forget to reindex after this change. When decimal context precision is adj
```
WARNING dipdup.database Decimal context precision has been updated: 28 -> 128
```
## Packaging
### Poetry, PDM, pip... What the hell?
13 changes: 8 additions & 5 deletions docs/9.release-notes/1.v7.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: DipDup 7.2 release notes

# Release Notes: 7.2

We're glad to announce DipDup 7.2! This release brings Etherlink smart rollup compatibility, API for managing indexes in runtime, and a bunch of minor improvements.

## Indexing Tezos Etherlink smart rollups

Etherlink is an EVM-compatible smart rollup, which prioritizes fair ordering of transactions, low latency and security.
Expand All @@ -19,19 +21,19 @@ Since version 7.2 you can index Etherlink smart rollups like usual Tezos contrac

Etherlink rollups' addresses start with `sr1` prefix instead of `KT1`, and entrypoint is always `default`. If you omit entrypoint in the operation pattern, the transaction will be treated as untyped.

See the [Package](../2.indexes/5.tezos_tzkt_operations.md) page for more details.
See the [tezos.tzkt.operations](../2.indexes/5.tezos_tzkt_operations.md) page for more details.

## API to add indexes in runtime

One of the cool features of DipDup is that you can add indexes in runtime using `ctx.add_contract/add_index` methods from any callback. Now we have a basic HTTP API for the same purpose. To use it, add `api` section to your config:
One of the cool features of DipDup is that you can add indexes in runtime using `ctx.add_contract/add_index` methods from any callback. Now a basic HTTP API is available for the same purpose. To use it, add `api` section to your config:

```yaml [dipdup.yaml]
api:
host: 127.0.0.1
port: 46339 # dial INDEX 😎
```
Now use your favorite HTTP client to manage DipDup.
Now you can use your favorite HTTP client to manage DipDup:
```shell
# Add contract
Expand All @@ -50,7 +52,8 @@ See the [API reference](../7.references/5.api.md) for more details.

## Other improvements

- make is back, package_manager
- performance
`make` is back! After gathering feedback from the community we decided to return `Makefile` to the base template, but _make_ it package manager-agnostic. Instead, when creating a new project DipDup suggests choosing a package manager from PDM/Poetry/None (sets `package_manager` field in `replay.yaml` config). No action is required for existing projects, but you can run `dipdup init --base [--force]` to update the project base.

Finally, performance. Indexing EVM events with node RPC (`evm.node` datasource) has become faster. Node RPC is used only for the "last mile" - fetching blocks not yet in Subsquid Archives API - and realtime subscriptions, so it's not a big deal, but still nice to have. Finally, typeclass generation (with `datamodel-codegen`) is also faster now, and resulting classes use `X | Y` union syntax when possible.

{{ #include 9.release-notes/_footer.md }}
2 changes: 1 addition & 1 deletion docs/9.release-notes/_footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ___

__See you soon! 👋__

DipDup is a free open-source software published under the MIT License. We are a small independent team and we rely on your support! Join our socials to discuss this release, ask any questions, or become a sponsor to support DipDup development.
DipDup is a free open-source software published under the MIT License. Join our socials to discuss this release, ask any questions, or become a sponsor to support DipDup development.

[Twitter](https://twitter.com/dipdup_io) | [Discord](https://discord.gg/aG8XKuwsQd) | [GitHub](https://github.com/dipdup-io/dipdup) | [❤ Become a Sponsor](https://github.com/sponsors/dipdup-io)

0 comments on commit 46ce2f0

Please sign in to comment.