Skip to content

Commit

Permalink
Merge branch 'feat/1418-checkbox-user-input-component' of github.com:…
Browse files Browse the repository at this point in the history
…input-output-hk/catalyst-voices into feat/1418-checkbox-user-input-component
  • Loading branch information
LynxLynxx committed Jan 7, 2025
2 parents 1a7c200 + f116b19 commit 4ca0ede
Show file tree
Hide file tree
Showing 26 changed files with 85 additions and 38 deletions.
6 changes: 3 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.24 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.24 AS cspell-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/postgresql:v3.2.24 AS postgresql-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.27 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.27 AS cspell-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/postgresql:v3.2.27 AS postgresql-ci

FROM debian:stable-slim

Expand Down
6 changes: 1 addition & 5 deletions catalyst-gateway/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ rustflags = [

[build]
rustflags = []
rustdocflags = [
"--enable-index-page",
"-Z",
"unstable-options",
]
rustdocflags = []

[profile.dev]
opt-level = 1
Expand Down
2 changes: 1 addition & 1 deletion catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.24 AS rust-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.27 AS rust-ci

#cspell: words rustfmt toolsets USERARCH stdcfgs

Expand Down
5 changes: 3 additions & 2 deletions catalyst-gateway/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cargo-tree:

# Check Dependency licenses and CVE's
license-check:
cargo deny check --exclude-dev
cargo deny check --exclude-dev || true

# Format the rust code
code-format:
Expand All @@ -27,7 +27,8 @@ code-lint:

# Synchronize Rust Configs
sync-cfg:
cd .. && earthly ./catalyst-gateway+sync-cfg
cd .. && \
earthly ./catalyst-gateway+sync-cfg

# Pre Push Checks
pre-push: sync-cfg code-format code-lint license-check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ impl EventDB {
impl EventDB {
/// Get voter query
#[allow(dead_code)]
#[allow(clippy::ref_option)]
pub(crate) async fn get_voter(
event: &Option<EventId>, voting_key: String, with_delegations: bool,
) -> anyhow::Result<Voter> {
Expand Down Expand Up @@ -156,6 +157,7 @@ impl EventDB {

/// Get delegator query
#[allow(dead_code)]
#[allow(clippy::ref_option)]
pub(crate) async fn get_delegator(
event: &Option<EventId>, stake_public_key: String,
) -> anyhow::Result<Delegator> {
Expand Down
1 change: 1 addition & 0 deletions catalyst-gateway/clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
1 change: 1 addition & 0 deletions catalyst-gateway/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ allow-git = [
"https://github.com/txpipe/vrf",
"https://github.com/txpipe/kes",
"https://github.com/txpipe/curve25519-dalek",
"https://github.com/input-output-hk/mithril",
]

[licenses]
Expand Down
4 changes: 2 additions & 2 deletions catalyst-gateway/event-db/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# the database and its associated software.
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/postgresql:v3.2.24 AS postgresql-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.2.24 AS python-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/postgresql:v3.2.27 AS postgresql-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.2.27 AS python-ci

# cspell: words

Expand Down
2 changes: 1 addition & 1 deletion catalyst-gateway/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.81"
channel = "1.83"
profile = "default"
3 changes: 1 addition & 2 deletions catalyst-gateway/tests/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/spectral:v3.2.24 AS spectral-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/spectral:v3.2.27 AS spectral-ci
IMPORT .. AS gateway

# cspell: words oapi
Expand Down
2 changes: 1 addition & 1 deletion catalyst-gateway/tests/api_tests/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.2.24 AS python-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.2.27 AS python-ci

builder:
FROM python-ci+python-base
Expand Down
2 changes: 1 addition & 1 deletion catalyst_voices/Earthfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION 0.8

IMPORT ../catalyst-gateway AS catalyst-gateway
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.24 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.27 AS flutter-ci

# repo-catalyst-voices - Creates artifacts of all configuration files,
# packages and folders related to catalyst_voices frontend.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.24 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/playwright:v3.2.24 AS playwright-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.27 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/playwright:v3.2.27 AS playwright-ci

deps:
DO playwright-ci+SETUP --workdir=/wallet-automation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.24 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter_rust_bridge:v3.2.24 AS flutter_rust_bridge
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.27 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter_rust_bridge:v3.2.27 AS flutter_rust_bridge

builder:
FROM flutter_rust_bridge+builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ rustflags = [

[build]
rustflags = []
rustdocflags = [
"--enable-index-page",
"-Z",
"unstable-options",
]
rustdocflags = []

[profile.dev]
opt-level = 1
Expand Down Expand Up @@ -90,4 +86,4 @@ quiet = false # whether cargo output is quiet
verbose = false # whether cargo provides verbose output
color = "auto" # whether cargo colorizes output use `CARGO_TERM_COLOR="off"` to disable.
progress.when = "never" # whether cargo shows progress bar
progress.width = 80 # width of progress bar
progress.width = 80 # width of progress bar
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ store-success-output = true
#
# Note that if a description can be extracted from the output, it is always stored in the
# <description> element.
store-failure-output = true
store-failure-output = true
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.24 AS rust-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.27 AS rust-ci
IMPORT ../ AS flutter-rust-bridge

# builder : Setup the builder
Expand All @@ -22,4 +22,10 @@ build:

COPY flutter-rust-bridge+code-generator/frb_generated.rs ./src/frb_generated.rs
DO rust-ci+EXECUTE \
--cmd="/scripts/std_build.py" \
--cmd="/scripts/std_build.py"

# sync-cfg: Synchronize local config with CI version.
# Must be run by the developer manually.
sync-cfg:
FROM +builder
DO rust-ci+SYNC_STD_CFG
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# use with https://github.com/casey/just
#
# Developer convenience functions

# cspell: words prereqs, commitlog, rustls, nocapture

default:
@just --list --unsorted

# Show the dependency tree and all enabled feature flags of every crate.
cargo-tree:
cargo tree -e features,normal,build -f "{p}[{f}]" --workspace --frozen

# Check Dependency licenses and CVE's
license-check:
cargo deny check --exclude-dev || true

# Format the rust code
code-format:
# Create a dummy file just to past the CI format check
# Add another blank line to satisfy the cargo fmt check
#printf "\n" > ./src/frb_generated.rs

#cargo +nightly fmtfix
#cargo +nightly fmtchk

# Lint the rust code
code-lint:
#cargo lintfix -r
#cargo lint -r

# Synchronize Rust Configs
sync-cfg:
cd ../../../../.. && \
earthly ./catalyst_voices/packages/libs/catalyst_key_derivation/rust+sync-cfg

# Pre Push Checks
pre-push: sync-cfg code-format code-lint license-check
# Make sure we can actually build inside Earthly which needs to happen in CI.
cd ../../../../.. && \
earthly ./catalyst_voices/packages/libs/catalyst_key_derivation/rust+check && \
earthly ./catalyst_voices/packages/libs/catalyst_key_derivation/rust+build
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ allow-git = [
"https://github.com/txpipe/vrf",
"https://github.com/txpipe/kes",
"https://github.com/txpipe/curve25519-dalek",
"https://github.com/input-output-hk/mithril",
]

[licenses]
Expand Down Expand Up @@ -120,4 +121,4 @@ license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
#[[licenses.clarify]]
#crate = "rustls-webpki"
#expression = "ISC"
#license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]
#license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.81"
channel = "1.83"
profile = "default"
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ condense_wildcard_suffixes = true
hex_literal_case = "Upper"

# Ignored files:
ignore = []
ignore = []
2 changes: 1 addition & 1 deletion catalyst_voices/utilities/uikit_example/Earthfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION 0.8

IMPORT ../../ AS catalyst-voices
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.24 AS flutter-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/flutter:v3.2.27 AS flutter-ci

# local-build-web - build web version of UIKit example.
# Prefixed by "local" to make sure it's not auto triggered, the target was
Expand Down
2 changes: 1 addition & 1 deletion docs/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.24 AS docs-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.27 AS docs-ci

IMPORT .. AS repo
IMPORT ../catalyst-gateway AS catalyst-gateway
Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ check-spelling:
# Pre Push Checks - intended to be run by a git pre-push hook.
pre-push: check-markdown check-spelling
just catalyst-gateway/pre-push
just catalyst_voices/pre-push
# just catalyst_voices/pre-push
just catalyst_voices/packages/libs/catalyst_key_derivation/rust/pre-push
earthly ./catalyst_voices+code-generator --platform=linux/amd64 --save_locally=true

# Run cat-gateway natively on preprod
Expand Down
2 changes: 1 addition & 1 deletion utilities/docs-preview/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.24 AS docs-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.27 AS docs-ci


# update-docs-dev-script: get the latest docs dev script from CI.
Expand Down

0 comments on commit 4ca0ede

Please sign in to comment.