mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-03 13:39:38 +00:00
Bump the LEZ dependency from the `lez-core-v0.2.0` tag to `v0.2.0-rc6` across the workspace and all guest manifests (still resolving via the renamed `lee_core`/`lee` packages), and regenerate the lockfiles to match. rc6 moved the clock program out of `nssa` into a separate system-programs crate (gated behind the guest-building `artifacts` feature), so adapt the tests: - Import `ClockAccountData` and `CLOCK_01_PROGRAM_ACCOUNT_ID` from `clock_core` instead of `nssa`, and build clock data via `ClockAccountData::to_bytes()` rather than hand-encoding the Borsh layout. - `V03State::new()` no longer auto-creates the clock account, so AMM tests seed the canonical 1-block clock explicitly before ops that read it. - `advance_clock` now writes the clock account directly via `force_insert_account` (the clock can no longer be ticked with a real transaction), matching how upstream rc6 state-machine tests seed accounts. - Add the `clock_core` dependency to integration_tests/benchmark.
67 lines
1.9 KiB
TOML
67 lines
1.9 KiB
TOML
[package]
|
|
name = "amm-guest"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[workspace]
|
|
|
|
[profile.release]
|
|
debug = 0
|
|
strip = "symbols"
|
|
|
|
[lints.rust]
|
|
rust_2018_idioms = { level = "deny", priority = -1 }
|
|
# deny (not forbid) so a targeted per-item #[allow] remains possible if ever needed
|
|
unsafe_code = "deny"
|
|
|
|
[lints.clippy]
|
|
# Deny only the groups where a new lint should always be a hard error.
|
|
# style/pedantic lints default to warn so toolchain upgrades don't break the
|
|
# build unexpectedly — they can be evaluated and addressed at our own pace.
|
|
correctness = { level = "deny", priority = -1 }
|
|
suspicious = { level = "deny", priority = -1 }
|
|
perf = { level = "deny", priority = -1 }
|
|
style = { level = "warn", priority = -1 }
|
|
|
|
# Generated-code / placeholder blockers.
|
|
dbg_macro = "deny"
|
|
todo = "deny"
|
|
unimplemented = "deny"
|
|
unwrap_used = "deny"
|
|
|
|
# Lint suppression hygiene.
|
|
allow_attributes = "warn"
|
|
allow_attributes_without_reason = "deny"
|
|
|
|
# Determinism, panic-safety, and arithmetic correctness.
|
|
arithmetic_side_effects = "deny"
|
|
indexing_slicing = "deny"
|
|
|
|
# Cast discipline.
|
|
as_conversions = "deny"
|
|
cast_possible_truncation = "deny"
|
|
cast_possible_wrap = "deny"
|
|
cast_sign_loss = "deny"
|
|
|
|
# API and enum evolution.
|
|
large_enum_variant = "deny"
|
|
wildcard_enum_match_arm = "deny"
|
|
|
|
# Too noisy for this codebase unless enforced selectively.
|
|
module_name_repetitions = "allow"
|
|
similar_names = "allow"
|
|
|
|
[[bin]]
|
|
name = "amm"
|
|
path = "src/bin/amm.rs"
|
|
|
|
[dependencies]
|
|
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
|
nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", package = "lee_core" }
|
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
|
amm_core = { path = "../../core" }
|
|
amm_program = { path = "../..", package = "amm_program" }
|
|
token_core = { path = "../../../token/core" }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
borsh = "1.5"
|