Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/examples/cvat/exchange-oracle/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ sqlalchemy.url =
# on newly generated revision scripts. See the documentation for further
# detail and examples

hooks=ruff, ruff_format, types_update
hooks=ruff, ruff_format

ruff.type = exec
ruff.executable = ruff
Expand Down
243 changes: 117 additions & 126 deletions packages/examples/cvat/exchange-oracle/poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/examples/cvat/exchange-oracle/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages = [{include = "exchange_oracle"}]

[tool.poetry.dependencies]
python = "^3.10,<3.13"
fastapi = "^0.111.1"
fastapi = {version = "^0.115.4", extras = ["standard"]}
uvicorn = "^0.30.0"
python-dotenv = "^1.0.0"
psycopg2 = "^2.9.6"
Expand All @@ -32,6 +32,7 @@ fastapi-filter = "^1.1.0"
fastapi-limiter = "^0.1.6"
strenum = "^0.4.15"
pyjwt = "^2.9.0"
starlette = ">=0.40.0" # avoid the vulnerability with multipart/form-data


[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 4 additions & 0 deletions packages/examples/cvat/exchange-oracle/src/models/cvat.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Project(Base):
")"
),
foreign_keys=[escrow_address, chain_id],
overlaps="escrow_validation",
)
escrow_validation: Mapped[EscrowValidation] = relationship(
back_populates="projects",
Expand All @@ -73,6 +74,7 @@ class Project(Base):
")"
),
foreign_keys=[escrow_address, chain_id],
overlaps="escrow_creation",
)

def __repr__(self) -> str:
Expand Down Expand Up @@ -129,6 +131,7 @@ class EscrowCreation(Base):
")"
),
foreign_keys=[Project.escrow_address, Project.chain_id],
overlaps="projects, escrow_validation",
)

def __repr__(self) -> str:
Expand Down Expand Up @@ -157,6 +160,7 @@ class EscrowValidation(Base):
")"
),
foreign_keys=[Project.escrow_address, Project.chain_id],
overlaps="projects, escrow_creation",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ def prepare_escrows_for_validation(
.where(EscrowValidation.status == EscrowValidationStatuses.awaiting)
.limit(limit)
.order_by(EscrowValidation.attempts.asc())
.subquery()
)
update_stmt = (
update(EscrowValidation)
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/cvat/recording-oracle/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sqlalchemy.url = driver://user:pass@localhost/dbname
# on newly generated revision scripts. See the documentation for further
# detail and examples

hooks=ruff, ruff_format, types_update
hooks=ruff, ruff_format

ruff.type = exec
ruff.executable = ruff
Expand Down
243 changes: 117 additions & 126 deletions packages/examples/cvat/recording-oracle/poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/examples/cvat/recording-oracle/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages = [{include = "recording_oracle"}]

[tool.poetry.dependencies]
python = "^3.10, <3.13"
fastapi = "^0.111.1"
fastapi = {version = "^0.115.4", extras = ["standard"]}
uvicorn = "^0.22.0"
python-dotenv = "^1.0.0"
SQLAlchemy = "^2.0.17"
Expand All @@ -24,6 +24,7 @@ google-cloud-storage = "^2.14.0"
datumaro = {git = "https://github.com/cvat-ai/datumaro.git", rev = "ff83c00c2c1bc4b8fdfcc55067fcab0a9b5b6b11"}
human-protocol-sdk = "^3.0.4"
hexbytes = ">=1.2.0" # required for to_0x_hex() function
starlette = ">=0.40.0" # avoid the vulnerability with multipart/form-data

[tool.poetry.group.dev.dependencies]
hypothesis = "^6.82.6"
Expand Down