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
8 changes: 8 additions & 0 deletions scripts/generate_sdk_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def generate_rust() -> None:
)
TARGETS["rust"].write_text(output)

# Run rustfmt over the result so this file is byte-identical to what
# `cargo fmt --all` produces. Without it the two CI jobs contradict each
# other: quicktype emits `use serde::{Serialize, Deserialize};`, rustfmt
# reorders that to `{Deserialize, Serialize}`, and whichever job ran last
# left the other one red — the Rust job on a formatting diff, or this
# script's own drift check on the reordered import.
run_checked(["rustfmt", "--edition", "2021", str(TARGETS["rust"])])


def generate_typescript() -> None:
run_checked(
Expand Down
205 changes: 162 additions & 43 deletions sdk/go/openapi/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions sdk/python/src/trident_indexer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .errors import TridentApiError
from .retry import DEFAULT_RETRY_CONFIG, RetryConfig
from .types import SorobanEvent, PaginatedEvents, Network
from .openapi_models_gen import OpenAPIModels, SorobanEvent as OpenAPISorobanEvent, EventListResponse, HealthResponse, IndexerStatsResponse, ContractStats, ContractStatsResponse, ErrorResponse
from .openapi_models_gen import OpenAPIModels, SorobanEvent as OpenAPISorobanEvent, EventListResponse, LivenessResponse, ReadyResponse, ReadyChecks, IndexerStatsResponse, ContractStats, ContractStatsResponse, ErrorResponse

try:
__version__ = _version("trident-indexer")
Expand All @@ -30,7 +30,9 @@
"OpenAPIModels",
"OpenAPISorobanEvent",
"EventListResponse",
"HealthResponse",
"LivenessResponse",
"ReadyResponse",
"ReadyChecks",
"IndexerStatsResponse",
"ContractStats",
"ContractStatsResponse",
Expand Down
Loading
Loading