Skip to content

Commit

Permalink
feat: Get slot number by provided date-time endpoint (#387)
Browse files Browse the repository at this point in the history
* fix CardanoStakeAddress error handling

* refactor, add sync_state_get endpoint

* refactor types

* refactor

* add block_hash validation

* wip

* wip

* wip

* wip

* add check_network fn

* fix

* fix schematisis test

* try

* wip

* try

* try

* try

* try

* wip

* try

* try

* fix

* update Network

* add test_utxo test

* try

* fix

* try

* fix

* wip

* fix

* fix docket-compose.yml file

* try

* try

* fix

* try

* try

* try

* try

* wip

* fix

* wip

* try

* try

* wip

* try

* try

* revert

* wip

* wip

* wip

* fix

* fix

* fix

* remove mithril_snapshot loader

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add stake addr bech32 encode utils function

* wip

* wip

* update indexing of the utxo data

* fix spelling

* wip

* wip

* finish utxo test

* fix deny

* fix check

* fix

* fix

* update earthly builder versions

* wip

* ignore test_utxo.py in CI

* dont ignore tests

* add date_time_to_slot_number_get endpoint

* add sql queries

* fix

* update slot info, fix follower indexing block time issue

* add previous slot info field

* fix

* refactor

* fix sync_state_get

* wip

* fix check

* try

* fix

* finish slot_info test, fix queries

* fix

* cleanup

* wip

* wip

* wip
  • Loading branch information
Mr-Leshiy authored Apr 10, 2024
1 parent 9921f59 commit b5525c9
Show file tree
Hide file tree
Showing 32 changed files with 839 additions and 269 deletions.
23 changes: 11 additions & 12 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,32 @@ FROM debian:stable-slim

# check-markdown markdown check using catalyst-ci.
check-markdown:
DO github.com/input-output-hk/catalyst-ci/earthly/mdlint:v2.11.0+CHECK
DO github.com/input-output-hk/catalyst-ci/earthly/mdlint:v2.11.1+CHECK

# markdown-check-fix markdown check and fix using catalyst-ci.
markdown-check-fix:
LOCALLY

DO github.com/input-output-hk/catalyst-ci/earthly/mdlint:v2.11.0+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix
DO github.com/input-output-hk/catalyst-ci/earthly/mdlint:v2.11.1+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix

# check-spelling Check spelling in this repo inside a container.
check-spelling:
DO github.com/input-output-hk/catalyst-ci/earthly/cspell:v2.11.0+CHECK
DO github.com/input-output-hk/catalyst-ci/earthly/cspell:v2.11.1+CHECK

repo-docs:
# Create artifacts of extra files we embed inside the documentation when its built.
FROM scratch
# check if the sql files are properly formatted and pass lint quality checks.
check-sqlfluff:
FROM github.com/input-output-hk/catalyst-ci/earthly/postgresql:v2.11.1+postgres-base

WORKDIR /repo
COPY --dir *.md LICENSE-APACHE LICENSE-MIT .
COPY . .

SAVE ARTIFACT /repo repo
DO github.com/input-output-hk/catalyst-ci/earthly/postgresql:v2.11.1+CHECK

repo-config:
# Create artifacts of config file we need to refer to in builders.
repo-docs:
# Create artifacts of extra files we embed inside the documentation when its built.
FROM scratch

WORKDIR /repo
COPY --dir .sqlfluff .
COPY --dir *.md LICENSE-APACHE LICENSE-MIT .

SAVE ARTIFACT /repo repo

Expand Down
40 changes: 39 additions & 1 deletion catalyst-gateway/Cargo.lock

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

5 changes: 4 additions & 1 deletion catalyst-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ local-ip-address = "0.5.7"
gethostname = "0.4.3"
hex = "0.4.3"
async-recursion = "1.0.5"
pallas = { git = "https://github.com/input-output-hk/catalyst-pallas.git", branch = "fix/immutable-secondary", version = "0.24.0" }
handlebars = "5.1.2"
anyhow = "1.0.71"
cddl = "0.9.2"
ciborium = "0.2"
pallas = { git = "https://github.com/input-output-hk/catalyst-pallas.git", branch = "fix/immutable-secondary", version = "0.24.0" }
cardano-chain-follower= { git = "https://github.com/input-output-hk/hermes.git", version="0.0.1" }

[workspace.lints.rust]
Expand Down
2 changes: 1 addition & 1 deletion catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VERSION --try --global-cache 0.7

# Set up our target toolchains, and copy our files.
builder:
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.11.0+SETUP
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.11.1+SETUP

COPY --dir .cargo .config Cargo.* clippy.toml deny.toml rustfmt.toml bin crates .
COPY --dir ./event-db/queries ./event-db/queries
Expand Down
5 changes: 3 additions & 2 deletions catalyst-gateway/bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ async-recursion = { workspace = true }
pallas = { workspace = true }
cardano-chain-follower= { workspace = true }
anyhow = { workspace = true }
cddl = "0.9.2"
ciborium = "0.2"
handlebars = { workspace = true }
cddl = { workspace = true }
ciborium = { workspace = true }
119 changes: 0 additions & 119 deletions catalyst-gateway/bin/src/event_db/follower.rs

This file was deleted.

Loading

0 comments on commit b5525c9

Please sign in to comment.