Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/demo_evm_uniswap/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class Swap(Model):
transaction_hash = fields.TextField()
# timestamp of transaction
timestamp = fields.DatetimeField(db_index=True)
# pool swap occured within
# pool swap occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='swaps')
# allow indexing by tokens
token0: fields.ForeignKeyRelation[Token] = fields.ForeignKeyField('models.Token', related_name='swaps_token0')
Expand Down Expand Up @@ -369,7 +369,7 @@ class Collect(Model):
transaction_hash = fields.TextField()
# timestamp of event
timestamp = fields.BigIntField()
# pool collect occured within
# pool collect occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='collects')
# owner of position collect was performed on
owner = fields.CharField(max_length=42, null=True)
Expand All @@ -393,7 +393,7 @@ class Flash(Model):
transaction_hash = fields.TextField()
# timestamp of event
timestamp = fields.BigIntField()
# pool collect occured within
# pool collect occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='flashed')
# sender of the flash
sender = fields.CharField(max_length=42)
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/codegen/tezos.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def generate_schemas(self) -> None:
else:
pass

# NOTE: Euristics for complex cases like templated `similar_to` factories.
# NOTE: Heuristics for complex cases like templated `similar_to` factories.
# NOTE: Try different contracts and datasources from config until one succeeds.
for template_config in unused_operation_templates:
self._logger.warning(
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ def _validate(self) -> None:
if name in SYSTEM_HOOKS:
raise ConfigurationError(f'`{name}` hook name is reserved by system hook')

# NOTE: Rollback depth euristics and validation
# NOTE: Rollback depth heuristics and validation
rollback_depth = 0
for name, datasource_config in self.datasources.items():
try:
Expand Down
6 changes: 3 additions & 3 deletions src/dipdup/projects/demo_evm_uniswap/models/__init__.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class Swap(Model):
transaction_hash = fields.TextField()
# timestamp of transaction
timestamp = fields.DatetimeField(db_index=True)
# pool swap occured within
# pool swap occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='swaps')
# allow indexing by tokens
token0: fields.ForeignKeyRelation[Token] = fields.ForeignKeyField('models.Token', related_name='swaps_token0')
Expand Down Expand Up @@ -369,7 +369,7 @@ class Collect(Model):
transaction_hash = fields.TextField()
# timestamp of event
timestamp = fields.BigIntField()
# pool collect occured within
# pool collect occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='collects')
# owner of position collect was performed on
owner = fields.CharField(max_length=42, null=True)
Expand All @@ -393,7 +393,7 @@ class Flash(Model):
transaction_hash = fields.TextField()
# timestamp of event
timestamp = fields.BigIntField()
# pool collect occured within
# pool collect occurred within
pool: fields.ForeignKeyRelation[Pool] = fields.ForeignKeyField('models.Pool', related_name='flashed')
# sender of the flash
sender = fields.CharField(max_length=42)
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/sql/dipdup_wipe.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Drops all user-defined objects (views, materialized views, tables, sequences, types, functions, TimescaleDB hypertables/chunks)
-- in the specified schema. A complete schema wipe without dropping the schema itself. Afair this was implemented for compatibility
-- in the specified schema. A complete schema wipe without dropping the schema itself. Affair this was implemented for compatibility
-- with some cloud providers.
CREATE OR REPLACE FUNCTION dipdup_wipe(schema_name VARCHAR) RETURNS void AS $$
DECLARE
Expand Down