mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-06-02 07:09:29 +00:00
BREAKING CHANGE:
- Crate `nssa` renamed to `lee`; update `Cargo.toml` dependencies from `nssa = { workspace = true }` to `lee = { workspace = true }`.
- Crate `nssa_core` renamed to `lee_core`; update similarly.
- Crate `key_protocol` moved under `lee`; update `Cargo.toml` dependencies from `key_protocol = { workspace = true }` to `lee_key_protocol = { workspace = true }`.
- Type `NSSATransaction` (in `common`) renamed to `LeeTransaction`.
- Error type `nssa::error::NssaError` renamed to `lee::error::LeeError`.
- Error type `nssa_core::error::NssaCoreError` renamed to `lee_core::error::LeeCoreError`.
- All `use nssa::` and `use nssa_core::` import paths must be updated to `use lee::` and `use lee_core::` respectively.
- Guest programs must replace `write_nssa_outputs` with `write_lee_outputs`.
- The sequencer RocksDB column family for the chain state was renamed. Existing databases are incompatible and must be wiped before running the new version.
- Domain separators updated: `"NSSA_seed"` → `"LEE_seed"` (key derivation), `"NSSA/v0.2/KDF-SHA256/"` → `"LEE/v0.2/KDF-SHA256/"` (encryption KDF), `"/NSSA/v0.2/AccountId/PDA/"` →
`"/LEE/v0.2/AccountId/PDA/"` (public PDA address derivation). All previously derived keys, encrypted outputs, and public PDA addresses are invalidated.
77 lines
2.5 KiB
Makefile
77 lines
2.5 KiB
Makefile
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# ---- Configuration ----
|
|
METHODS_PATH := "program_methods"
|
|
TEST_METHODS_PATH := "test_program_methods"
|
|
ARTIFACTS := "artifacts"
|
|
|
|
# Build risc0 program artifacts
|
|
build-artifacts:
|
|
@echo "🔨 Building artifacts"
|
|
@for methods_path in {{METHODS_PATH}} {{TEST_METHODS_PATH}}; do \
|
|
echo "Building artifacts for $methods_path"; \
|
|
CARGO_TARGET_DIR=target/$methods_path cargo risczero build --manifest-path $methods_path/guest/Cargo.toml; \
|
|
mkdir -p {{ARTIFACTS}}/$methods_path; \
|
|
cp target/$methods_path/riscv32im-risc0-zkvm-elf/docker/*.bin {{ARTIFACTS}}/$methods_path; \
|
|
done
|
|
|
|
# Run tests
|
|
test:
|
|
@echo "🧪 Running tests"
|
|
RISC0_DEV_MODE=1 cargo nextest run --no-fail-fast
|
|
|
|
# Run criterion benches: fast crypto primitives, then the slow PPE verify (real proving setup).
|
|
bench:
|
|
@echo "📊 Running criterion benches"
|
|
cargo bench -p crypto_primitives_bench --bench primitives
|
|
cargo bench -p cycle_bench --features ppe --bench verify
|
|
|
|
# Run Bedrock node in docker
|
|
[working-directory: 'bedrock']
|
|
run-bedrock:
|
|
@echo "⛓️ Running bedrock"
|
|
docker compose up
|
|
|
|
# Run Sequencer
|
|
[working-directory: 'sequencer/service']
|
|
run-sequencer:
|
|
@echo "🧠 Running sequencer"
|
|
RUST_LOG=info RISC0_DEV_MODE=1 cargo run --release -p sequencer_service configs/debug/sequencer_config.json
|
|
|
|
# Run Indexer
|
|
[working-directory: 'indexer/service']
|
|
run-indexer mock="":
|
|
@echo "🔍 Running indexer"
|
|
@if [ "{{mock}}" = "mock" ]; then \
|
|
echo "🧪 Using mock data"; \
|
|
RUST_LOG=info RISC0_DEV_MODE=1 cargo run --release --features mock-responses -p indexer_service configs/indexer_config.json; \
|
|
else \
|
|
echo "🚀 Using real data"; \
|
|
RUST_LOG=info RISC0_DEV_MODE=1 cargo run --release -p indexer_service configs/indexer_config.json; \
|
|
fi
|
|
|
|
# Run Explorer
|
|
[working-directory: 'explorer_service']
|
|
run-explorer:
|
|
@echo "🌐 Running explorer"
|
|
RUST_LOG=info cargo leptos serve
|
|
|
|
# Run Wallet
|
|
[working-directory: 'wallet']
|
|
run-wallet +args:
|
|
@echo "🔑 Running wallet"
|
|
LEE_WALLET_HOME_DIR=$(pwd)/configs/debug cargo run --release -p wallet -- {{args}}
|
|
|
|
# Clean runtime data
|
|
clean:
|
|
@echo "🧹 Cleaning run artifacts"
|
|
rm -rf sequencer/service/bedrock_signing_key
|
|
rm -rf sequencer/service/rocksdb
|
|
rm -rf indexer/service/rocksdb
|
|
rm -rf wallet/configs/debug/storage.json
|
|
rm -rf rocksdb
|
|
cd bedrock && docker compose down -v
|