From 091ea5a5d09b31d549e8f8fe0c9f6854932560f3 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Mon, 29 Jun 2026 01:16:34 +0200 Subject: [PATCH] chore: update to LEZ v0.2.0-rc6 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. --- Cargo.lock | 43 ++-- Cargo.toml | 4 +- programs/amm/Cargo.toml | 4 +- programs/amm/core/Cargo.toml | 2 +- programs/amm/methods/guest/Cargo.lock | 10 +- programs/amm/methods/guest/Cargo.toml | 2 +- programs/ata/Cargo.toml | 2 +- programs/ata/core/Cargo.toml | 2 +- programs/ata/methods/guest/Cargo.lock | 8 +- programs/ata/methods/guest/Cargo.toml | 2 +- programs/benchmark/Cargo.lock | 237 +++++++++++++----- programs/benchmark/Cargo.toml | 5 +- programs/benchmark/tests/twap_cycle_bench.rs | 29 ++- programs/integration_tests/Cargo.toml | 1 + programs/integration_tests/tests/amm.rs | 45 ++-- programs/integration_tests/tests/ata.rs | 16 +- .../integration_tests/tests/stablecoin.rs | 4 +- programs/integration_tests/tests/token.rs | 8 +- programs/stablecoin/Cargo.toml | 2 +- programs/stablecoin/core/Cargo.toml | 2 +- programs/stablecoin/methods/guest/Cargo.lock | 8 +- programs/stablecoin/methods/guest/Cargo.toml | 2 +- programs/token/Cargo.toml | 2 +- programs/token/core/Cargo.toml | 2 +- programs/token/methods/guest/Cargo.lock | 8 +- programs/token/methods/guest/Cargo.toml | 2 +- programs/twap_oracle/Cargo.toml | 4 +- programs/twap_oracle/core/Cargo.toml | 2 +- programs/twap_oracle/methods/guest/Cargo.lock | 10 +- programs/twap_oracle/methods/guest/Cargo.toml | 4 +- 30 files changed, 294 insertions(+), 178 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 757673b..4ccb288 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -696,15 +696,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "bridge_core" -version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" -dependencies = [ - "lee_core", - "serde", -] - [[package]] name = "bs58" version = "0.5.1" @@ -714,6 +705,15 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "build_utils" +version = "0.1.0" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" +dependencies = [ + "anyhow", + "risc0-binfmt", +] + [[package]] name = "bumpalo" version = "3.20.3" @@ -861,7 +861,7 @@ dependencies = [ [[package]] name = "clock_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "borsh", "lee_core", @@ -1440,15 +1440,6 @@ dependencies = [ "bytes", ] -[[package]] -name = "faucet_core" -version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" -dependencies = [ - "lee_core", - "serde", -] - [[package]] name = "ff" version = "0.13.1" @@ -2060,6 +2051,7 @@ dependencies = [ "amm_core", "ata-methods", "ata_core", + "clock_core", "lee", "lee_core", "stablecoin-methods", @@ -2224,20 +2216,17 @@ dependencies = [ [[package]] name = "lee" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "anyhow", "borsh", - "bridge_core", - "clock_core", - "faucet_core", + "build_utils", "hex", "k256", "lee_core", "log", "rand 0.8.6", "risc0-binfmt", - "risc0-build", "risc0-zkvm", "serde", "serde_with", @@ -2248,7 +2237,7 @@ dependencies = [ [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -3694,7 +3683,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#bef2b158c59d2c2644666df94d47924dd051855d" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -3711,7 +3700,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#bef2b158c59d2c2644666df94d47924dd051855d" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 61f8ffd..c48d05a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,8 +31,8 @@ exclude = [ resolver = "2" [workspace.dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } -nssa = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["test-utils"], package = "lee" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } +nssa = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["test-utils"], package = "lee" } token_core = { path = "programs/token/core" } token_program = { path = "programs/token" } amm_core = { path = "programs/amm/core" } diff --git a/programs/amm/Cargo.toml b/programs/amm/Cargo.toml index a1afb86..e985d27 100644 --- a/programs/amm/Cargo.toml +++ b/programs/amm/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } -clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } +clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" } amm_core = { path = "core" } token_core = { path = "../token/core" } twap_oracle_core = { path = "../twap_oracle/core" } diff --git a/programs/amm/core/Cargo.toml b/programs/amm/core/Cargo.toml index ef6e6a7..3d4cc2a 100644 --- a/programs/amm/core/Cargo.toml +++ b/programs/amm/core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } spel-framework-macros = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework-macros" } token_core = { path = "../../token/core" } borsh = { version = "1.5", features = ["derive"] } diff --git a/programs/amm/methods/guest/Cargo.lock b/programs/amm/methods/guest/Cargo.lock index 4bb1741..2662c86 100644 --- a/programs/amm/methods/guest/Cargo.lock +++ b/programs/amm/methods/guest/Cargo.lock @@ -730,7 +730,7 @@ dependencies = [ [[package]] name = "clock_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "borsh", "lee_core", @@ -1636,7 +1636,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -2649,7 +2649,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "spel-framework" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "borsh", "lee_core", @@ -2661,7 +2661,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -2678,7 +2678,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/programs/amm/methods/guest/Cargo.toml b/programs/amm/methods/guest/Cargo.toml index 8d62f3e..7c51698 100644 --- a/programs/amm/methods/guest/Cargo.toml +++ b/programs/amm/methods/guest/Cargo.toml @@ -57,7 +57,7 @@ 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 = "lez-core-v0.2.0", package = "lee_core" } +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" } diff --git a/programs/ata/Cargo.toml b/programs/ata/Cargo.toml index a95a8b0..08daf1d 100644 --- a/programs/ata/Cargo.toml +++ b/programs/ata/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } ata_core = { path = "core" } token_core = { path = "../token/core" } diff --git a/programs/ata/core/Cargo.toml b/programs/ata/core/Cargo.toml index 380be78..b03e75f 100644 --- a/programs/ata/core/Cargo.toml +++ b/programs/ata/core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } borsh = { version = "1.5", features = ["derive"] } serde = { version = "1.0", features = ["derive"] } risc0-zkvm = { version = "=3.0.5", default-features = false } diff --git a/programs/ata/methods/guest/Cargo.lock b/programs/ata/methods/guest/Cargo.lock index 62ecd5f..e2166e4 100644 --- a/programs/ata/methods/guest/Cargo.lock +++ b/programs/ata/methods/guest/Cargo.lock @@ -1099,7 +1099,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -1856,7 +1856,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "spel-framework" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "borsh", "lee_core", @@ -1868,7 +1868,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -1885,7 +1885,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/programs/ata/methods/guest/Cargo.toml b/programs/ata/methods/guest/Cargo.toml index 730fcbd..b72be58 100644 --- a/programs/ata/methods/guest/Cargo.toml +++ b/programs/ata/methods/guest/Cargo.toml @@ -57,7 +57,7 @@ path = "src/bin/ata.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 = "lez-core-v0.2.0", package = "lee_core" } +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 } # Pin ruint (transitive via risc0-binfmt) below 1.18, which raised its MSRV to # rustc 1.90. The risc0 guest toolchain ships rustc 1.88, so 1.18+ fails the diff --git a/programs/benchmark/Cargo.lock b/programs/benchmark/Cargo.lock index 77e1a4b..868204e 100644 --- a/programs/benchmark/Cargo.lock +++ b/programs/benchmark/Cargo.lock @@ -534,8 +534,9 @@ checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" name = "benchmark" version = "0.1.0" dependencies = [ - "nssa", - "nssa_core", + "clock_core", + "lee", + "lee_core", "risc0-zkvm", "twap-oracle-methods", "twap_oracle_core", @@ -684,6 +685,15 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "build_utils" +version = "0.1.0" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" +dependencies = [ + "anyhow", + "risc0-binfmt", +] + [[package]] name = "bumpalo" version = "3.20.3" @@ -833,12 +843,18 @@ dependencies = [ [[package]] name = "clock_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc3#cf3639d8252040d13b3d4e933feb19b42c76e14a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "borsh", - "nssa_core", + "lee_core", ] +[[package]] +name = "cmov" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" + [[package]] name = "cobs" version = "0.3.0" @@ -866,6 +882,12 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + [[package]] name = "const_format" version = "0.2.36" @@ -1024,7 +1046,18 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" dependencies = [ + "getrandom 0.4.3", "hybrid-array", + "rand_core 0.10.1", +] + +[[package]] +name = "ctutils" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +dependencies = [ + "cmov", ] [[package]] @@ -1102,11 +1135,21 @@ version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" dependencies = [ - "const-oid", + "const-oid 0.9.6", "pem-rfc7468", "zeroize", ] +[[package]] +name = "der" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71fd89660b2dc699704064e59e9dba0147b903e85319429e131620d022be411b" +dependencies = [ + "const-oid 0.10.2", + "zeroize", +] + [[package]] name = "deranged" version = "0.5.8" @@ -1208,7 +1251,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", - "const-oid", + "const-oid 0.9.6", "crypto-common 0.1.6", "subtle", ] @@ -1313,13 +1356,13 @@ version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ - "der", + "der 0.7.10", "digest 0.10.7", "elliptic-curve", "rfc6979", "serdect", "signature", - "spki", + "spki 0.7.3", ] [[package]] @@ -1359,7 +1402,7 @@ dependencies = [ "generic-array", "group", "pem-rfc7468", - "pkcs8", + "pkcs8 0.10.2", "rand_core 0.6.4", "sec1", "serdect", @@ -1774,6 +1817,7 @@ dependencies = [ "cfg-if", "libc", "r-efi 6.0.0", + "rand_core 0.10.1", ] [[package]] @@ -1951,6 +1995,7 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da" dependencies = [ + "ctutils", "typenum", ] @@ -2332,6 +2377,16 @@ dependencies = [ "sha3-asm", ] +[[package]] +name = "kem" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01737161ba802849cfd486b5bd209d38ba4943494c249a8126005170c7621edd" +dependencies = [ + "crypto-common 0.2.2", + "rand_core 0.10.1", +] + [[package]] name = "konst" version = "0.2.20" @@ -2379,6 +2434,44 @@ dependencies = [ "spin", ] +[[package]] +name = "lee" +version = "0.1.0" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" +dependencies = [ + "anyhow", + "borsh", + "build_utils", + "hex", + "k256", + "lee_core", + "log", + "rand 0.8.6", + "risc0-binfmt", + "risc0-zkvm", + "serde", + "serde_with", + "sha2", + "thiserror 2.0.18", +] + +[[package]] +name = "lee_core" +version = "0.1.0" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" +dependencies = [ + "base58", + "borsh", + "bytemuck", + "bytesize", + "chacha20", + "ml-kem", + "risc0-zkvm", + "serde", + "serde_with", + "thiserror 2.0.18", +] + [[package]] name = "libc" version = "0.2.186" @@ -2610,6 +2703,31 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "ml-kem" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e15f3e5b957493873e396a66914e83e616b6afe335cdef7efe5c6e1216aba66" +dependencies = [ + "hybrid-array", + "kem", + "module-lattice", + "pkcs8 0.11.0", + "rand_core 0.10.1", + "sha3", +] + +[[package]] +name = "module-lattice" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c61b87c9683ab7cb1c6871d261ad5479b6b10ceb52c4352aaca3b5d35a8febe" +dependencies = [ + "ctutils", + "hybrid-array", + "num-traits", +] + [[package]] name = "ndarray" version = "0.16.1" @@ -2632,45 +2750,6 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5b0c77c1b780822bc749a33e39aeb2c07584ab93332303babeabb645298a76e" -[[package]] -name = "nssa" -version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc3#cf3639d8252040d13b3d4e933feb19b42c76e14a" -dependencies = [ - "anyhow", - "borsh", - "clock_core", - "hex", - "k256", - "log", - "nssa_core", - "rand 0.8.6", - "risc0-binfmt", - "risc0-build", - "risc0-zkvm", - "serde", - "serde_with", - "sha2", - "thiserror 2.0.18", -] - -[[package]] -name = "nssa_core" -version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc3#cf3639d8252040d13b3d4e933feb19b42c76e14a" -dependencies = [ - "base58", - "borsh", - "bytemuck", - "bytesize", - "chacha20", - "k256", - "risc0-zkvm", - "serde", - "serde_with", - "thiserror 2.0.18", -] - [[package]] name = "num-bigint" version = "0.3.3" @@ -2926,9 +3005,9 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" dependencies = [ - "der", - "pkcs8", - "spki", + "der 0.7.10", + "pkcs8 0.10.2", + "spki 0.7.3", ] [[package]] @@ -2937,8 +3016,18 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der", - "spki", + "der 0.7.10", + "spki 0.7.3", +] + +[[package]] +name = "pkcs8" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7" +dependencies = [ + "der 0.8.0", + "spki 0.8.0", ] [[package]] @@ -3243,6 +3332,12 @@ dependencies = [ "getrandom 0.3.4", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + [[package]] name = "rand_xorshift" version = "0.4.0" @@ -3792,16 +3887,16 @@ version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d" dependencies = [ - "const-oid", + "const-oid 0.9.6", "digest 0.10.7", "num-bigint-dig", "num-integer", "num-traits", "pkcs1", - "pkcs8", + "pkcs8 0.10.2", "rand_core 0.6.4", "signature", - "spki", + "spki 0.7.3", "subtle", "zeroize", ] @@ -4023,9 +4118,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", - "der", + "der 0.7.10", "generic-array", - "pkcs8", + "pkcs8 0.10.2", "serdect", "subtle", "zeroize", @@ -4262,23 +4357,25 @@ dependencies = [ [[package]] name = "spel-framework-core" -version = "0.3.0" -source = "git+https://github.com/logos-co/spel.git?tag=v0.3.0#84f50d4aa473a70b72a16a7fb468c5618277cdd7" +version = "0.5.0" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ + "base58", "borsh", - "nssa_core", + "lee_core", "proc-macro2", "serde", "serde_json", "sha2", "syn 2.0.118", "thiserror 1.0.69", + "toml", ] [[package]] name = "spel-framework-macros" -version = "0.3.0" -source = "git+https://github.com/logos-co/spel.git?tag=v0.3.0#84f50d4aa473a70b72a16a7fb468c5618277cdd7" +version = "0.5.0" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", @@ -4304,7 +4401,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", - "der", + "der 0.7.10", +] + +[[package]] +name = "spki" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f" +dependencies = [ + "base64ct", + "der 0.8.0", ] [[package]] @@ -4734,7 +4841,7 @@ version = "0.1.0" dependencies = [ "alloy-primitives", "borsh", - "nssa_core", + "lee_core", "risc0-zkvm", "ruint", "serde", diff --git a/programs/benchmark/Cargo.toml b/programs/benchmark/Cargo.toml index 77a82a3..51c0451 100644 --- a/programs/benchmark/Cargo.toml +++ b/programs/benchmark/Cargo.toml @@ -11,8 +11,9 @@ edition = "2021" [workspace] [dependencies] -nssa = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", package = "lee" } -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", package = "lee" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } +clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" } twap_oracle_core = { path = "../twap_oracle/core" } twap-oracle-methods = { path = "../twap_oracle/methods" } # `prove` exposes `ExecutorImpl`/`Session` (the cycle split); we only execute, never prove. diff --git a/programs/benchmark/tests/twap_cycle_bench.rs b/programs/benchmark/tests/twap_cycle_bench.rs index 60a3fe0..b739a61 100644 --- a/programs/benchmark/tests/twap_cycle_bench.rs +++ b/programs/benchmark/tests/twap_cycle_bench.rs @@ -2,9 +2,9 @@ //! //! This runs the real `twap_oracle` guest ELF directly through the RISC Zero executor (no proving) //! with the session limit lifted, so we can measure the zkVM cycle cost of instructions that exceed -//! the on-chain `MAX_NUM_CYCLES_PUBLIC_EXECUTION = 32 MiCycles` budget — `RecordTick` in particular, -//! which aborts under the normal runtime and therefore can't be measured through `nssa`'s -//! `transition_from_public_transaction`. +//! the on-chain `MAX_NUM_CYCLES_PUBLIC_EXECUTION = 32 MiCycles` budget — `RecordTick` in +//! particular, which aborts under the normal runtime and therefore can't be measured through +//! `nssa`'s `transition_from_public_transaction`. //! //! It reproduces `nssa::program::Program::execute`'s input encoding (four `env.write` calls: //! program id, caller program id, pre-states, instruction words) and reports the executor's @@ -16,7 +16,7 @@ //! cargo test --manifest-path programs/benchmark/Cargo.toml -- --ignored --nocapture //! ``` -use nssa::CLOCK_01_PROGRAM_ACCOUNT_ID; +use clock_core::{ClockAccountData, CLOCK_01_PROGRAM_ACCOUNT_ID}; use nssa_core::{ account::{Account, AccountId, AccountWithMetadata, Data}, program::ProgramId, @@ -53,14 +53,15 @@ fn price_source_id() -> AccountId { AccountId::new(PRICE_SOURCE_BYTES) } -/// Borsh layout of `ClockAccountData { block_id: u64, timestamp: u64 }` — two little-endian u64s. fn clock_account(timestamp: u64) -> AccountWithMetadata { - let mut bytes = Vec::with_capacity(16); - bytes.extend_from_slice(&0u64.to_le_bytes()); // block_id - bytes.extend_from_slice(×tamp.to_le_bytes()); + let data = ClockAccountData { + block_id: 0, + timestamp, + } + .to_bytes(); AccountWithMetadata { account: Account { - data: Data::try_from(bytes).expect("clock data fits"), + data: Data::try_from(data).expect("clock data fits"), ..Account::default() }, is_authorized: false, @@ -270,7 +271,10 @@ fn twap_record_tick_cycle_budget_report() { println!("\nUnder the on-chain hard limit (session_limit = {limit} = 2^25):\n"); let (create_pre, create_instr) = create_inputs(); let create_ok = completes_under_limit(&create_pre, &create_instr, limit); - println!(" CreatePriceObservations (cap {cap}): {}", verdict(create_ok)); + println!( + " CreatePriceObservations (cap {cap}): {}", + verdict(create_ok) + ); let (write_pre, write_instr) = record_inputs(cap, min_interval * 4); let write_ok = completes_under_limit(&write_pre, &write_instr, limit); @@ -393,7 +397,10 @@ fn twap_owned_account_commit_cost() { // (a) Same size, opposite fill: an effectively-empty buffer (write_index = 1, one used entry) // vs an all-non-zero buffer. Both are fully allocated once created. - println!("\n(a) fill level, at cap {cap} (both {} bytes):", obs_bytes(cap)); + println!( + "\n(a) fill level, at cap {cap} (both {} bytes):", + obs_bytes(cap) + ); let empty = run( &[ observations_account(cap), // entries all default except [0] diff --git a/programs/integration_tests/Cargo.toml b/programs/integration_tests/Cargo.toml index d3c14e4..ce1e5de 100644 --- a/programs/integration_tests/Cargo.toml +++ b/programs/integration_tests/Cargo.toml @@ -9,6 +9,7 @@ workspace = true [dependencies] nssa = { workspace = true } nssa_core = { workspace = true, features = ["host", "test_utils"] } +clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" } amm_core = { workspace = true } token_core = { workspace = true } ata_core = { workspace = true } diff --git a/programs/integration_tests/tests/amm.rs b/programs/integration_tests/tests/amm.rs index 8ad4882..c76502c 100644 --- a/programs/integration_tests/tests/amm.rs +++ b/programs/integration_tests/tests/amm.rs @@ -7,11 +7,11 @@ use amm_core::{ PoolDefinition, FEE_TIER_BPS_1, FEE_TIER_BPS_100, FEE_TIER_BPS_30, FEE_TIER_BPS_5, MINIMUM_LIQUIDITY, }; +use clock_core::{ClockAccountData, CLOCK_01_PROGRAM_ACCOUNT_ID}; use nssa::{ error::LeeError, program_deployment_transaction::{self, ProgramDeploymentTransaction}, public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State, - CLOCK_01_PROGRAM_ACCOUNT_ID, }; use nssa_core::account::{Account, AccountId, Data, Nonce}; use token_core::{TokenDefinition, TokenHolding}; @@ -977,7 +977,7 @@ fn deploy_programs(state: &mut V03State) { } fn state_for_amm_tests() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::config(), Accounts::config()); state.force_insert_account(Ids::pool_definition(), Accounts::pool_definition_init()); @@ -1008,11 +1008,14 @@ fn state_for_amm_tests() -> V03State { state.force_insert_account(Ids::user_lp(), Accounts::user_lp_holding()); state.force_insert_account(Ids::vault_a(), Accounts::vault_a_init()); state.force_insert_account(Ids::vault_b(), Accounts::vault_b_init()); + // rc6's `V03State::new()` no longer auto-creates the clock account; seed the canonical + // 1-block clock so AMM ops that read it (current-tick refresh, TWAP observations) work. + advance_clock(&mut state, 0); state } fn state_for_amm_tests_with_new_def() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::config(), Accounts::config()); state.force_insert_account( @@ -1025,6 +1028,9 @@ fn state_for_amm_tests_with_new_def() -> V03State { ); state.force_insert_account(Ids::user_a(), Accounts::user_a_holding()); state.force_insert_account(Ids::user_b(), Accounts::user_b_holding()); + // rc6's `V03State::new()` no longer auto-creates the clock account; seed the canonical + // 1-block clock so the chained TWAP calls in `new_definition` can read it. + advance_clock(&mut state, 0); state } @@ -1394,7 +1400,7 @@ fn fungible_total_supply(account: &Account) -> u128 { #[test] fn amm_initialize_creates_config_account() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); // Before initialization the config PDA does not exist. @@ -1448,7 +1454,7 @@ fn config_data(state: &V03State) -> amm_core::AmmConfig { } fn initialized_amm_state() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); execute_initialize(&mut state); state @@ -1660,21 +1666,26 @@ fn amm_create_price_observations_without_current_tick_account_fails() { ); } -/// Advances the canonical 1-block clock to `timestamp` by submitting a clock transaction, mirroring -/// how the sequencer ticks the clock between blocks. `RecordTick` reads this account, so the TWAP -/// tests use it to simulate the passage of time between observations. +/// Advances the canonical 1-block clock to `timestamp` by writing the clock account directly into +/// state. `RecordTick` reads this account (`CLOCK_01_PROGRAM_ACCOUNT_ID`), so the TWAP tests use it +/// to simulate the passage of time between observations. +/// +/// rc6 moved the clock program out of `nssa` into the separate system-programs crate (gated behind +/// the guest-building `artifacts` feature), so the clock can no longer be ticked by submitting a +/// real clock transaction here. Instead we set the account state directly via +/// `force_insert_account`, matching how the upstream rc6 state-machine tests seed accounts. #[cfg(test)] fn advance_clock(state: &mut V03State, timestamp: u64) { - let message = public_transaction::Message::try_new( - nssa::program::Program::clock().id(), - nssa::CLOCK_PROGRAM_ACCOUNT_IDS.to_vec(), - vec![], + let data = ClockAccountData { + block_id: 0, timestamp, - ) - .unwrap(); - let witness_set = public_transaction::WitnessSet::for_message(&message, &[]); - let tx = PublicTransaction::new(message, witness_set); - state.transition_from_public_transaction(&tx, 0, 0).unwrap(); + } + .to_bytes(); + let clock_account = Account { + data: Data::try_from(data).expect("clock account data fits"), + ..Account::default() + }; + state.force_insert_account(CLOCK_01_PROGRAM_ACCOUNT_ID, clock_account); } /// Calls the TWAP oracle's permissionless `RecordTick` directly (it is not wrapped by the AMM), diff --git a/programs/integration_tests/tests/ata.rs b/programs/integration_tests/tests/ata.rs index 377b6e5..243ccd3 100644 --- a/programs/integration_tests/tests/ata.rs +++ b/programs/integration_tests/tests/ata.rs @@ -145,7 +145,7 @@ fn deploy_programs(state: &mut V03State) { } fn state_for_ata_tests() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); state.force_insert_account(Ids::owner_ata(), Accounts::owner_ata_init()); @@ -160,7 +160,7 @@ fn state_for_ata_tests_with_precreated_recipient_ata() -> V03State { #[test] fn ata_create() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); @@ -233,7 +233,7 @@ fn ata_create_is_idempotent() { #[test] fn ata_create_rejects_definition_owned_by_unexpected_token_program() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account( Ids::token_definition(), @@ -264,7 +264,7 @@ fn ata_create_rejects_definition_owned_by_unexpected_token_program() { #[test] fn ata_create_rejects_existing_ata_owned_by_unexpected_token_program() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); @@ -293,7 +293,7 @@ fn ata_create_rejects_existing_ata_owned_by_unexpected_token_program() { #[test] fn ata_create_rejects_existing_ata_with_mismatched_definition() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); @@ -503,7 +503,7 @@ fn ata_burn() { #[test] fn ata_create_from_private_owner() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); @@ -535,8 +535,8 @@ fn ata_create_from_private_owner() { // Encapsulate a shared secret against the owner's viewing key; the circuit fills the EPK. let shared_secret = SharedSecretKey::encapsulate_deterministic(&owner_vpk, &[0u8; 32], 0).0; - let ata_program = Program::new(ata_methods::ATA_ELF.to_vec()).unwrap(); - let token_program = Program::new(token_methods::TOKEN_ELF.to_vec()).unwrap(); + let ata_program = Program::new(ata_methods::ATA_ELF.to_vec().into()).unwrap(); + let token_program = Program::new(token_methods::TOKEN_ELF.to_vec().into()).unwrap(); let program_with_deps = ProgramWithDependencies::new( ata_program, HashMap::from([(Ids::token_program(), token_program)]), diff --git a/programs/integration_tests/tests/stablecoin.rs b/programs/integration_tests/tests/stablecoin.rs index 4044d84..c4cc276 100644 --- a/programs/integration_tests/tests/stablecoin.rs +++ b/programs/integration_tests/tests/stablecoin.rs @@ -184,7 +184,7 @@ fn deploy_programs(state: &mut V03State) { } fn state_for_stablecoin_tests() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account( Ids::collateral_definition(), @@ -199,7 +199,7 @@ fn current_nonce(state: &V03State, account_id: AccountId) -> Nonce { } fn state_for_stablecoin_repay_tests() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_programs(&mut state); state.force_insert_account( Ids::collateral_definition(), diff --git a/programs/integration_tests/tests/token.rs b/programs/integration_tests/tests/token.rs index aeb2ddd..fd7bbf8 100644 --- a/programs/integration_tests/tests/token.rs +++ b/programs/integration_tests/tests/token.rs @@ -113,7 +113,7 @@ fn deploy_token(state: &mut V03State) { } fn state_for_token_tests() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_token(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); state.force_insert_account(Ids::holder(), Accounts::holder_init()); @@ -122,7 +122,7 @@ fn state_for_token_tests() -> V03State { } fn state_for_token_tests_without_recipient() -> V03State { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_token(&mut state); state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init()); state.force_insert_account(Ids::holder(), Accounts::holder_init()); @@ -131,7 +131,7 @@ fn state_for_token_tests_without_recipient() -> V03State { #[test] fn token_new_fungible_definition() { - let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0); + let mut state = V03State::new(); deploy_token(&mut state); let instruction = token_core::Instruction::NewFungibleDefinition { @@ -643,7 +643,7 @@ impl PrivateKeys { } fn token_program() -> Program { - Program::new(token_methods::TOKEN_ELF.to_vec()).expect("valid token ELF") + Program::new(token_methods::TOKEN_ELF.to_vec().into()).expect("valid token ELF") } /// Performs a shielded transfer (public → private) of `amount` tokens from diff --git a/programs/stablecoin/Cargo.toml b/programs/stablecoin/Cargo.toml index 0a0e1b1..89ea243 100644 --- a/programs/stablecoin/Cargo.toml +++ b/programs/stablecoin/Cargo.toml @@ -4,6 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } stablecoin_core = { path = "core" } token_core = { path = "../token/core" } diff --git a/programs/stablecoin/core/Cargo.toml b/programs/stablecoin/core/Cargo.toml index a8554fb..2d5d670 100644 --- a/programs/stablecoin/core/Cargo.toml +++ b/programs/stablecoin/core/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } borsh = { version = "1.5", features = ["derive"] } alloy-primitives = { version = "1", default-features = false } # Pin ruint (transitive via alloy-primitives) below 1.18, which raised its MSRV to rustc 1.90. diff --git a/programs/stablecoin/methods/guest/Cargo.lock b/programs/stablecoin/methods/guest/Cargo.lock index e11aa5f..225f972 100644 --- a/programs/stablecoin/methods/guest/Cargo.lock +++ b/programs/stablecoin/methods/guest/Cargo.lock @@ -1588,7 +1588,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -2601,7 +2601,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "spel-framework" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "borsh", "lee_core", @@ -2613,7 +2613,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -2630,7 +2630,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/programs/stablecoin/methods/guest/Cargo.toml b/programs/stablecoin/methods/guest/Cargo.toml index 90d65a0..09473a2 100644 --- a/programs/stablecoin/methods/guest/Cargo.toml +++ b/programs/stablecoin/methods/guest/Cargo.toml @@ -15,7 +15,7 @@ path = "src/bin/stablecoin.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 = "lez-core-v0.2.0", package = "lee_core" } +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 } twap_oracle_core = { path = "../../../twap_oracle/core" } stablecoin_core = { path = "../../core" } diff --git a/programs/token/Cargo.toml b/programs/token/Cargo.toml index 6189e08..ee016ac 100644 --- a/programs/token/Cargo.toml +++ b/programs/token/Cargo.toml @@ -7,5 +7,5 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } token_core = { path = "core" } diff --git a/programs/token/core/Cargo.toml b/programs/token/core/Cargo.toml index a09546d..053f6d8 100644 --- a/programs/token/core/Cargo.toml +++ b/programs/token/core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } spel-framework-macros = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework-macros" } borsh = { version = "1.5", features = ["derive"] } serde = { version = "1.0", features = ["derive"] } diff --git a/programs/token/methods/guest/Cargo.lock b/programs/token/methods/guest/Cargo.lock index 0f61db5..6e1113a 100644 --- a/programs/token/methods/guest/Cargo.lock +++ b/programs/token/methods/guest/Cargo.lock @@ -1065,7 +1065,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -1822,7 +1822,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "spel-framework" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "borsh", "lee_core", @@ -1834,7 +1834,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -1851,7 +1851,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/programs/token/methods/guest/Cargo.toml b/programs/token/methods/guest/Cargo.toml index d4a39cd..7771e3c 100644 --- a/programs/token/methods/guest/Cargo.toml +++ b/programs/token/methods/guest/Cargo.toml @@ -57,7 +57,7 @@ path = "src/bin/token.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 = "lez-core-v0.2.0", package = "lee_core" } +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 } # Pin ruint (transitive via risc0-binfmt) below 1.18, which raised its MSRV to # rustc 1.90. The risc0 guest toolchain ships rustc 1.88, so 1.18+ fails the diff --git a/programs/twap_oracle/Cargo.toml b/programs/twap_oracle/Cargo.toml index 8a95ba4..5d0ec8e 100644 --- a/programs/twap_oracle/Cargo.toml +++ b/programs/twap_oracle/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } -clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } +clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" } twap_oracle_core = { path = "core" } [lints] diff --git a/programs/twap_oracle/core/Cargo.toml b/programs/twap_oracle/core/Cargo.toml index 9122cb1..7c56288 100644 --- a/programs/twap_oracle/core/Cargo.toml +++ b/programs/twap_oracle/core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" workspace = true [dependencies] -nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", features = ["host"], package = "lee_core" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", features = ["host"], package = "lee_core" } borsh = { version = "1.5", features = ["derive"] } serde = { version = "1.0", features = ["derive"] } spel-framework-macros = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework-macros" } diff --git a/programs/twap_oracle/methods/guest/Cargo.lock b/programs/twap_oracle/methods/guest/Cargo.lock index ebe0b85..089bdf4 100644 --- a/programs/twap_oracle/methods/guest/Cargo.lock +++ b/programs/twap_oracle/methods/guest/Cargo.lock @@ -691,7 +691,7 @@ dependencies = [ [[package]] name = "clock_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "borsh", "lee_core", @@ -1597,7 +1597,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "lee_core" version = "0.1.0" -source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=lez-core-v0.2.0#fb8cbac40e0bda4f152415ff4f181cdc6bca6d4a" +source = "git+https://github.com/logos-blockchain/logos-execution-zone.git?tag=v0.2.0-rc6#e37876a64028a335eb693198a1ed6a0e875ec5b4" dependencies = [ "base58", "borsh", @@ -2610,7 +2610,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "spel-framework" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "borsh", "lee_core", @@ -2622,7 +2622,7 @@ dependencies = [ [[package]] name = "spel-framework-core" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "base58", "borsh", @@ -2639,7 +2639,7 @@ dependencies = [ [[package]] name = "spel-framework-macros" version = "0.5.0" -source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#c4e4c7d0f5b487d48a000e71cb7b906294eb4c4b" +source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b" dependencies = [ "proc-macro2", "quote", diff --git a/programs/twap_oracle/methods/guest/Cargo.toml b/programs/twap_oracle/methods/guest/Cargo.toml index d0efd6e..d40704d 100644 --- a/programs/twap_oracle/methods/guest/Cargo.toml +++ b/programs/twap_oracle/methods/guest/Cargo.toml @@ -15,8 +15,8 @@ path = "src/bin/twap_oracle.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 = "lez-core-v0.2.0", package = "lee_core" } -clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" } +nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6", package = "lee_core" } +clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" } risc0-zkvm = { version = "=3.0.5", default-features = false } twap_oracle_core = { path = "../../core" } twap_oracle_program = { path = "../..", package = "twap_oracle_program" }