⚰️ DipDup 6.5 branch is no longer supported. Please, follow the⠀Migration Guide⠀to update to the latest version.

Internal models

This page describes the internal models used by DipDup. You shouldn't modify data in these models directly.

modeltabledescription
ModelN/ABase class for all models in DipDup project. Provides advanced transaction management.
Schemadipdup_schemaHash of database schema to detect changes that require reindexing.
Headdipdup_headThe latest block received by a datasource from a WebSocket connection.
Indexdipdup_indexIndexing status, level of the latest processed block, template, and template values if applicable.
Contractdipdup_contractNothing useful for us humans. It helps DipDup to keep track of dynamically spawned contracts.
ModelUpdatedipdup_model_updateService table to store model diffs for database rollback.
ContractMetadatadipdup_contract_metadataSee 5.12. Metadata interface
TokenMetadatadipdup_token_metadataSee 5.12. Metadata interface

With the help of these tables, you can set up monitoring of DipDup deployment to know when something goes wrong:

-- This query will return time since the latest block was received by a datasource.
SELECT NOW() - timestamp FROM dipdup_head;