Releases: dipdup-io/dipdup
Releases · dipdup-io/dipdup
6.4.0
6.4.0 - 2022-12-20
Fixed
- cli:
update
anduninstall
commands no longer require a valid config. - cli: Fixed a regression in
new
command leading to crash withTypeError
. - config: Fixed
jobs
section deserialization. - database: Ignore abstract models during module validation.
6.4.0rc1
6.4.0rc1 - 2022-12-09
Added
- config: Added optional
code_hash
field to contract config. - context: Added
first_level
andlast_level
arguments toctx.add_index
methods. - index: Filtering by
code_hash
is available foroperation
index. - tzkt: Added datasource methods
get_contract_address
andget_contract_hashes
. - tzkt: Originations and operations now can be fetched by contract code hashes.
- tzkt: Added
sender_code_hash
andtarget_code_hash
fields toOperationData
model.
Fixed
- codegen: Unresolved index templates are now correctly processed during types generation.
- demos: Fixed outdated
demo_dao
project. - http: Fixed a crash when datasource URL contains trailing slash.
- metadata: Add
limanet
to supported networks. - projects: Do not scaffold an outdated
poetry.lock
.
Changed
- demos: Demos were renamed to better indicate their purpose.
- exceptions:
FrameworkException
is raised instead of plainRuntimeError
when a framework error occurs. - exceptions: Known exceptions are inherited from
FrameworkError
. - tzkt: Some datasource methods have changed their signatures.
Deprecated
- config:
similar_to.address
filter is an alias fororiginated_contract.code_hash
and will be removed in the next major release. - config:
DipDupError
is an alias forFrameworkError
and will be removed in the next major release.
6.3.1
6.3.1 - 2022-11-25
Fixed
- cli: Do not apply cli hacks on module import.
- codegen: Include PEP 561 marker in generated packages.
- codegen: Untyped originations are now correctly handled.
- codegen: Fixed
alias
config field having no effect on originations. - codegen: Fixed optional arguments in generated callbacks.
- config: Suggest snake_case for package name.
- config: Fixed crash with
RuntimeError
when index has no subscriptions. - http: Limit aiohttp sessions to specific base URL.
- index: Do not deserialize originations matched by the
source
filter. - index: Wrap storage deserialization exceptions with
InvalidDataError
. - projects: Fixed Hasura environment in docker-compose examples.
Security
- hasura: Forbid using Hasura instances running vulnerable versions (GHSA-g7mj-g7f4-hgrg)
Other
- ci:
mypy --strict
is now enforced on a codebase. - ci: Finished migration to
pytest
.
6.3.0
6.3.0 - 2022-11-15
Added
- context: Added
execute_sql_query
method to run queries fromsql
project directory. - context:
execute_sql
method now accepts arbitrary arguments to format SQL script (unsafe, use with caution). - index: New filters for
token_transfer
index.
Fixed
- cli: Fixed missing log messages from
ctx.logger
. - codegen: Better PEP 8 compatibility of generated callbacks.
- context: Fixed SQL scripts executed in the wrong order.
- context: Fixed
execute_sql
method crashes when the path is not a directory. - database: Fixed crash with
CannotConnectNowError
before establishing the database connection. - database: Fixed crash when using F expressions inside versioned transactions.
- http: Fixed caching datasource responses when
replay_path
contains tilde. - http: Adjusted per-datasource default config values.
- project: Use the latest stable version instead of hardcoded values.
- tzkt: Fixed deserializing of
EventData
andOperationData
models. - tzkt: Fixed matching migration originations by address.
Deprecated
- ci:
pytezos
extra and corresponding Docker image are deprecated.
6.2.0
6.2.0 - 2022-10-12
Added
- cli:
new
command to create a new project interactively. - cli:
install/update/uninstall
commands to manage local DipDup installation. - index: New index kind
event
to process contract events. - install: New interactive installer based on pipx (
install.py
ordipdup-install
).
Fixed
- cli: Fixed commands that don't require a valid config yet crash with
ConfigurationError
. - codegen: Fail on demand when
datamodel-codegen
is not available. - codegen: Fixed Jinja2 template caching.
- config: Allow
sentry.dsn
field to be empty. - config: Fixed greedy environment variable regex.
- hooks: Raise a
FeatureAvailabilityHook
instead of a warning when trying to execute hooks on SQLite.
Improved
- cli: Detect
src/
layout when guessing package path. - codegen: Improved cross-platform compatibility.
- config:
sentry.user_id
option to set user ID for Sentry (affects release adoption data). - sentry: Detect environment when not set in config (docker/gha/tests/local)
- sentry: Expose more tags under the
dipdup
namespace.
Performance
- cli: Up to 5x faster startup for some commands.
Security
- sentry: Prevent Sentry from leaking hostname if
server_name
is not set. - sentry: Notify about using Sentry when DSN is set or crash reporting is enabled.
Other
- ci: A significantly faster execution of GitHub Actions.
- docs: Updated "Contributing Guide" page.
6.1.3
6.1.3 - 2022-09-21
Added
- sentry: Enable crash-free session reporting.
Fixed
- metadata: Updated protocol aliases.
- sentry: Unwrap
CallbackError
traceback to fix event grouping. - sentry: Hide "attempting to send..." message on shutdown.
Other
- ci: Do not build default and
-pytezos
nightly images.
6.1.2
6.1.2 - 2022-09-16
Added
- config: Added
alias
field to operation pattern items. - tzkt: Added quote field
gbp
.
Fixed
- config: Require aliases for multiple operations with the same entrypoint.
- http: Raise
InvalidRequestError
on 204 No Content responses. - tzkt: Verify API version on datasource initialization.
- tzkt: Remove deprecated block field
priority
.
6.1.1
6.1.1 - 2022-09-01
Fixed
- ci: Lock Pydantic to 1.9.2 to avoid breaking changes in dataclasses.
6.1.0
6.1.0 - 2022-08-30
Added
- ci: Build
arm64
images for M1/M2 silicon. - ci: Build
-slim
images based on Alpine Linux. - ci: Introduced official MacOS support.
- ci: Introduced interactive installer (dipdup.net/install.py).
6.0.1
6.0.1 - 2022-08-19
Fixed
- codegen: Fixed invalid
models.py
template. - context: Do not wrap known exceptions with
CallbackError
. - database: Raise
DatabaseConfigurationError
when backward relation name equals table name. - database: Wrap schema wiping in a transaction to avoid orphaned tables in the immune schema.
- hasura: Fixed processing M2M relations.
- sentry: Fixed "invalid value
environment
" error. - sentry: Ignore events from project callbacks when
crash_reporting
is enabled.