Skip to content

Releases: dipdup-io/dipdup

6.4.0

20 Dec 16:11
Compare
Choose a tag to compare

6.4.0 - 2022-12-20

Fixed

  • cli: update and uninstall commands no longer require a valid config.
  • cli: Fixed a regression in new command leading to crash with TypeError.
  • config: Fixed jobs section deserialization.
  • database: Ignore abstract models during module validation.

6.4.0rc1

09 Dec 21:00
Compare
Choose a tag to compare
6.4.0rc1 Pre-release
Pre-release

6.4.0rc1 - 2022-12-09

Added

  • config: Added optional code_hash field to contract config.
  • context: Added first_level and last_level arguments to ctx.add_index methods.
  • index: Filtering by code_hash is available for operation index.
  • tzkt: Added datasource methods get_contract_address and get_contract_hashes.
  • tzkt: Originations and operations now can be fetched by contract code hashes.
  • tzkt: Added sender_code_hash and target_code_hash fields to OperationData 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 plain RuntimeError 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 for originated_contract.code_hash and will be removed in the next major release.
  • config: DipDupError is an alias for FrameworkError and will be removed in the next major release.

6.3.1

25 Nov 18:11
Compare
Choose a tag to compare

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

Other

  • ci: mypy --strict is now enforced on a codebase.
  • ci: Finished migration to pytest.

6.3.0

15 Nov 17:09
Compare
Choose a tag to compare

6.3.0 - 2022-11-15

Added

  • context: Added execute_sql_query method to run queries from sql 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 and OperationData models.
  • tzkt: Fixed matching migration originations by address.

Deprecated

  • ci: pytezos extra and corresponding Docker image are deprecated.

6.2.0

12 Oct 21:59
Compare
Choose a tag to compare

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 or dipdup-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

21 Sep 04:41
Compare
Choose a tag to compare

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

16 Sep 15:48
Compare
Choose a tag to compare

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

01 Sep 23:55
Compare
Choose a tag to compare

6.1.1 - 2022-09-01

Fixed

  • ci: Lock Pydantic to 1.9.2 to avoid breaking changes in dataclasses.

6.1.0

31 Aug 00:20
Compare
Choose a tag to compare

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

19 Aug 12:44
Compare
Choose a tag to compare

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.