mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-28 09:43:17 +00:00
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.
This commit is contained in:
parent
c42d4b6c07
commit
091ea5a5d0
43
Cargo.lock
generated
43
Cargo.lock
generated
@ -696,15 +696,6 @@ dependencies = [
|
|||||||
"syn 2.0.118",
|
"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]]
|
[[package]]
|
||||||
name = "bs58"
|
name = "bs58"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
@ -714,6 +705,15 @@ dependencies = [
|
|||||||
"tinyvec",
|
"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]]
|
[[package]]
|
||||||
name = "bumpalo"
|
name = "bumpalo"
|
||||||
version = "3.20.3"
|
version = "3.20.3"
|
||||||
@ -861,7 +861,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "clock_core"
|
name = "clock_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -1440,15 +1440,6 @@ dependencies = [
|
|||||||
"bytes",
|
"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]]
|
[[package]]
|
||||||
name = "ff"
|
name = "ff"
|
||||||
version = "0.13.1"
|
version = "0.13.1"
|
||||||
@ -2060,6 +2051,7 @@ dependencies = [
|
|||||||
"amm_core",
|
"amm_core",
|
||||||
"ata-methods",
|
"ata-methods",
|
||||||
"ata_core",
|
"ata_core",
|
||||||
|
"clock_core",
|
||||||
"lee",
|
"lee",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
"stablecoin-methods",
|
"stablecoin-methods",
|
||||||
@ -2224,20 +2216,17 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee"
|
name = "lee"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"borsh",
|
"borsh",
|
||||||
"bridge_core",
|
"build_utils",
|
||||||
"clock_core",
|
|
||||||
"faucet_core",
|
|
||||||
"hex",
|
"hex",
|
||||||
"k256",
|
"k256",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
"log",
|
"log",
|
||||||
"rand 0.8.6",
|
"rand 0.8.6",
|
||||||
"risc0-binfmt",
|
"risc0-binfmt",
|
||||||
"risc0-build",
|
|
||||||
"risc0-zkvm",
|
"risc0-zkvm",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_with",
|
"serde_with",
|
||||||
@ -2248,7 +2237,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -3694,7 +3683,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -3711,7 +3700,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -31,8 +31,8 @@ exclude = [
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[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_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 = "lez-core-v0.2.0", features = ["test-utils"], package = "lee" }
|
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_core = { path = "programs/token/core" }
|
||||||
token_program = { path = "programs/token" }
|
token_program = { path = "programs/token" }
|
||||||
amm_core = { path = "programs/amm/core" }
|
amm_core = { path = "programs/amm/core" }
|
||||||
|
|||||||
@ -7,8 +7,8 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
||||||
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" }
|
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" }
|
||||||
amm_core = { path = "core" }
|
amm_core = { path = "core" }
|
||||||
token_core = { path = "../token/core" }
|
token_core = { path = "../token/core" }
|
||||||
twap_oracle_core = { path = "../twap_oracle/core" }
|
twap_oracle_core = { path = "../twap_oracle/core" }
|
||||||
|
|||||||
@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
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" }
|
token_core = { path = "../../token/core" }
|
||||||
borsh = { version = "1.5", features = ["derive"] }
|
borsh = { version = "1.5", features = ["derive"] }
|
||||||
|
|||||||
10
programs/amm/methods/guest/Cargo.lock
generated
10
programs/amm/methods/guest/Cargo.lock
generated
@ -730,7 +730,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "clock_core"
|
name = "clock_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -1636,7 +1636,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2649,7 +2649,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework"
|
name = "spel-framework"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -2661,7 +2661,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2678,7 +2678,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -57,7 +57,7 @@ path = "src/bin/amm.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
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 }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
amm_core = { path = "../../core" }
|
amm_core = { path = "../../core" }
|
||||||
amm_program = { path = "../..", package = "amm_program" }
|
amm_program = { path = "../..", package = "amm_program" }
|
||||||
|
|||||||
@ -7,6 +7,6 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
ata_core = { path = "core" }
|
||||||
token_core = { path = "../token/core" }
|
token_core = { path = "../token/core" }
|
||||||
|
|||||||
@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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"] }
|
borsh = { version = "1.5", features = ["derive"] }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
|
|||||||
8
programs/ata/methods/guest/Cargo.lock
generated
8
programs/ata/methods/guest/Cargo.lock
generated
@ -1099,7 +1099,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -1856,7 +1856,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework"
|
name = "spel-framework"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -1868,7 +1868,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -1885,7 +1885,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -57,7 +57,7 @@ path = "src/bin/ata.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
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 }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
# Pin ruint (transitive via risc0-binfmt) below 1.18, which raised its MSRV to
|
# 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
|
# rustc 1.90. The risc0 guest toolchain ships rustc 1.88, so 1.18+ fails the
|
||||||
|
|||||||
237
programs/benchmark/Cargo.lock
generated
237
programs/benchmark/Cargo.lock
generated
@ -534,8 +534,9 @@ checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
|
|||||||
name = "benchmark"
|
name = "benchmark"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nssa",
|
"clock_core",
|
||||||
"nssa_core",
|
"lee",
|
||||||
|
"lee_core",
|
||||||
"risc0-zkvm",
|
"risc0-zkvm",
|
||||||
"twap-oracle-methods",
|
"twap-oracle-methods",
|
||||||
"twap_oracle_core",
|
"twap_oracle_core",
|
||||||
@ -684,6 +685,15 @@ dependencies = [
|
|||||||
"tinyvec",
|
"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]]
|
[[package]]
|
||||||
name = "bumpalo"
|
name = "bumpalo"
|
||||||
version = "3.20.3"
|
version = "3.20.3"
|
||||||
@ -833,12 +843,18 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "clock_core"
|
name = "clock_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"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]]
|
[[package]]
|
||||||
name = "cobs"
|
name = "cobs"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
@ -866,6 +882,12 @@ version = "0.9.6"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "const-oid"
|
||||||
|
version = "0.10.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "const_format"
|
name = "const_format"
|
||||||
version = "0.2.36"
|
version = "0.2.36"
|
||||||
@ -1024,7 +1046,18 @@ version = "0.2.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
|
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"getrandom 0.4.3",
|
||||||
"hybrid-array",
|
"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]]
|
[[package]]
|
||||||
@ -1102,11 +1135,21 @@ version = "0.7.10"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
|
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"const-oid",
|
"const-oid 0.9.6",
|
||||||
"pem-rfc7468",
|
"pem-rfc7468",
|
||||||
"zeroize",
|
"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]]
|
[[package]]
|
||||||
name = "deranged"
|
name = "deranged"
|
||||||
version = "0.5.8"
|
version = "0.5.8"
|
||||||
@ -1208,7 +1251,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"block-buffer 0.10.4",
|
"block-buffer 0.10.4",
|
||||||
"const-oid",
|
"const-oid 0.9.6",
|
||||||
"crypto-common 0.1.6",
|
"crypto-common 0.1.6",
|
||||||
"subtle",
|
"subtle",
|
||||||
]
|
]
|
||||||
@ -1313,13 +1356,13 @@ version = "0.16.9"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
|
checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der",
|
"der 0.7.10",
|
||||||
"digest 0.10.7",
|
"digest 0.10.7",
|
||||||
"elliptic-curve",
|
"elliptic-curve",
|
||||||
"rfc6979",
|
"rfc6979",
|
||||||
"serdect",
|
"serdect",
|
||||||
"signature",
|
"signature",
|
||||||
"spki",
|
"spki 0.7.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1359,7 +1402,7 @@ dependencies = [
|
|||||||
"generic-array",
|
"generic-array",
|
||||||
"group",
|
"group",
|
||||||
"pem-rfc7468",
|
"pem-rfc7468",
|
||||||
"pkcs8",
|
"pkcs8 0.10.2",
|
||||||
"rand_core 0.6.4",
|
"rand_core 0.6.4",
|
||||||
"sec1",
|
"sec1",
|
||||||
"serdect",
|
"serdect",
|
||||||
@ -1774,6 +1817,7 @@ dependencies = [
|
|||||||
"cfg-if",
|
"cfg-if",
|
||||||
"libc",
|
"libc",
|
||||||
"r-efi 6.0.0",
|
"r-efi 6.0.0",
|
||||||
|
"rand_core 0.10.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1951,6 +1995,7 @@ version = "0.4.12"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da"
|
checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"ctutils",
|
||||||
"typenum",
|
"typenum",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -2332,6 +2377,16 @@ dependencies = [
|
|||||||
"sha3-asm",
|
"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]]
|
[[package]]
|
||||||
name = "konst"
|
name = "konst"
|
||||||
version = "0.2.20"
|
version = "0.2.20"
|
||||||
@ -2379,6 +2434,44 @@ dependencies = [
|
|||||||
"spin",
|
"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]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.186"
|
version = "0.2.186"
|
||||||
@ -2610,6 +2703,31 @@ dependencies = [
|
|||||||
"windows-sys 0.61.2",
|
"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]]
|
[[package]]
|
||||||
name = "ndarray"
|
name = "ndarray"
|
||||||
version = "0.16.1"
|
version = "0.16.1"
|
||||||
@ -2632,45 +2750,6 @@ version = "0.1.3"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a5b0c77c1b780822bc749a33e39aeb2c07584ab93332303babeabb645298a76e"
|
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]]
|
[[package]]
|
||||||
name = "num-bigint"
|
name = "num-bigint"
|
||||||
version = "0.3.3"
|
version = "0.3.3"
|
||||||
@ -2926,9 +3005,9 @@ version = "0.7.5"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
|
checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der",
|
"der 0.7.10",
|
||||||
"pkcs8",
|
"pkcs8 0.10.2",
|
||||||
"spki",
|
"spki 0.7.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -2937,8 +3016,18 @@ version = "0.10.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der",
|
"der 0.7.10",
|
||||||
"spki",
|
"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]]
|
[[package]]
|
||||||
@ -3243,6 +3332,12 @@ dependencies = [
|
|||||||
"getrandom 0.3.4",
|
"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]]
|
[[package]]
|
||||||
name = "rand_xorshift"
|
name = "rand_xorshift"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
@ -3792,16 +3887,16 @@ version = "0.9.10"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"
|
checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"const-oid",
|
"const-oid 0.9.6",
|
||||||
"digest 0.10.7",
|
"digest 0.10.7",
|
||||||
"num-bigint-dig",
|
"num-bigint-dig",
|
||||||
"num-integer",
|
"num-integer",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"pkcs1",
|
"pkcs1",
|
||||||
"pkcs8",
|
"pkcs8 0.10.2",
|
||||||
"rand_core 0.6.4",
|
"rand_core 0.6.4",
|
||||||
"signature",
|
"signature",
|
||||||
"spki",
|
"spki 0.7.3",
|
||||||
"subtle",
|
"subtle",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
@ -4023,9 +4118,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
|
checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base16ct",
|
"base16ct",
|
||||||
"der",
|
"der 0.7.10",
|
||||||
"generic-array",
|
"generic-array",
|
||||||
"pkcs8",
|
"pkcs8 0.10.2",
|
||||||
"serdect",
|
"serdect",
|
||||||
"subtle",
|
"subtle",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
@ -4262,23 +4357,25 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.3.0"
|
version = "0.5.0"
|
||||||
source = "git+https://github.com/logos-co/spel.git?tag=v0.3.0#84f50d4aa473a70b72a16a7fb468c5618277cdd7"
|
source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
"nssa_core",
|
"lee_core",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"syn 2.0.118",
|
"syn 2.0.118",
|
||||||
"thiserror 1.0.69",
|
"thiserror 1.0.69",
|
||||||
|
"toml",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.3.0"
|
version = "0.5.0"
|
||||||
source = "git+https://github.com/logos-co/spel.git?tag=v0.3.0#84f50d4aa473a70b72a16a7fb468c5618277cdd7"
|
source = "git+https://github.com/0x-r4bbit/spel.git?branch=refactor%2Flez-v020-compat#91023c9115bf88173b0d25d2e905f2a55ef0313b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@ -4304,7 +4401,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
|
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64ct",
|
"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]]
|
[[package]]
|
||||||
@ -4734,7 +4841,7 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"borsh",
|
"borsh",
|
||||||
"nssa_core",
|
"lee_core",
|
||||||
"risc0-zkvm",
|
"risc0-zkvm",
|
||||||
"ruint",
|
"ruint",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
@ -11,8 +11,9 @@ edition = "2021"
|
|||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nssa = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0", package = "lee" }
|
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 = "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" }
|
||||||
|
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_core = { path = "../twap_oracle/core" }
|
||||||
twap-oracle-methods = { path = "../twap_oracle/methods" }
|
twap-oracle-methods = { path = "../twap_oracle/methods" }
|
||||||
# `prove` exposes `ExecutorImpl`/`Session` (the cycle split); we only execute, never prove.
|
# `prove` exposes `ExecutorImpl`/`Session` (the cycle split); we only execute, never prove.
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
//!
|
//!
|
||||||
//! This runs the real `twap_oracle` guest ELF directly through the RISC Zero executor (no proving)
|
//! 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
|
//! 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,
|
//! the on-chain `MAX_NUM_CYCLES_PUBLIC_EXECUTION = 32 MiCycles` budget — `RecordTick` in
|
||||||
//! which aborts under the normal runtime and therefore can't be measured through `nssa`'s
|
//! particular, which aborts under the normal runtime and therefore can't be measured through
|
||||||
//! `transition_from_public_transaction`.
|
//! `nssa`'s `transition_from_public_transaction`.
|
||||||
//!
|
//!
|
||||||
//! It reproduces `nssa::program::Program::execute`'s input encoding (four `env.write` calls:
|
//! 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
|
//! 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
|
//! 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::{
|
use nssa_core::{
|
||||||
account::{Account, AccountId, AccountWithMetadata, Data},
|
account::{Account, AccountId, AccountWithMetadata, Data},
|
||||||
program::ProgramId,
|
program::ProgramId,
|
||||||
@ -53,14 +53,15 @@ fn price_source_id() -> AccountId {
|
|||||||
AccountId::new(PRICE_SOURCE_BYTES)
|
AccountId::new(PRICE_SOURCE_BYTES)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Borsh layout of `ClockAccountData { block_id: u64, timestamp: u64 }` — two little-endian u64s.
|
|
||||||
fn clock_account(timestamp: u64) -> AccountWithMetadata {
|
fn clock_account(timestamp: u64) -> AccountWithMetadata {
|
||||||
let mut bytes = Vec::with_capacity(16);
|
let data = ClockAccountData {
|
||||||
bytes.extend_from_slice(&0u64.to_le_bytes()); // block_id
|
block_id: 0,
|
||||||
bytes.extend_from_slice(×tamp.to_le_bytes());
|
timestamp,
|
||||||
|
}
|
||||||
|
.to_bytes();
|
||||||
AccountWithMetadata {
|
AccountWithMetadata {
|
||||||
account: Account {
|
account: Account {
|
||||||
data: Data::try_from(bytes).expect("clock data fits"),
|
data: Data::try_from(data).expect("clock data fits"),
|
||||||
..Account::default()
|
..Account::default()
|
||||||
},
|
},
|
||||||
is_authorized: false,
|
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");
|
println!("\nUnder the on-chain hard limit (session_limit = {limit} = 2^25):\n");
|
||||||
let (create_pre, create_instr) = create_inputs();
|
let (create_pre, create_instr) = create_inputs();
|
||||||
let create_ok = completes_under_limit(&create_pre, &create_instr, limit);
|
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_pre, write_instr) = record_inputs(cap, min_interval * 4);
|
||||||
let write_ok = completes_under_limit(&write_pre, &write_instr, limit);
|
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)
|
// (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.
|
// 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(
|
let empty = run(
|
||||||
&[
|
&[
|
||||||
observations_account(cap), // entries all default except [0]
|
observations_account(cap), // entries all default except [0]
|
||||||
|
|||||||
@ -9,6 +9,7 @@ workspace = true
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
nssa = { workspace = true }
|
nssa = { workspace = true }
|
||||||
nssa_core = { workspace = true, features = ["host", "test_utils"] }
|
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 }
|
amm_core = { workspace = true }
|
||||||
token_core = { workspace = true }
|
token_core = { workspace = true }
|
||||||
ata_core = { workspace = true }
|
ata_core = { workspace = true }
|
||||||
|
|||||||
@ -7,11 +7,11 @@ use amm_core::{
|
|||||||
PoolDefinition, FEE_TIER_BPS_1, FEE_TIER_BPS_100, FEE_TIER_BPS_30, FEE_TIER_BPS_5,
|
PoolDefinition, FEE_TIER_BPS_1, FEE_TIER_BPS_100, FEE_TIER_BPS_30, FEE_TIER_BPS_5,
|
||||||
MINIMUM_LIQUIDITY,
|
MINIMUM_LIQUIDITY,
|
||||||
};
|
};
|
||||||
|
use clock_core::{ClockAccountData, CLOCK_01_PROGRAM_ACCOUNT_ID};
|
||||||
use nssa::{
|
use nssa::{
|
||||||
error::LeeError,
|
error::LeeError,
|
||||||
program_deployment_transaction::{self, ProgramDeploymentTransaction},
|
program_deployment_transaction::{self, ProgramDeploymentTransaction},
|
||||||
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
|
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
|
||||||
CLOCK_01_PROGRAM_ACCOUNT_ID,
|
|
||||||
};
|
};
|
||||||
use nssa_core::account::{Account, AccountId, Data, Nonce};
|
use nssa_core::account::{Account, AccountId, Data, Nonce};
|
||||||
use token_core::{TokenDefinition, TokenHolding};
|
use token_core::{TokenDefinition, TokenHolding};
|
||||||
@ -977,7 +977,7 @@ fn deploy_programs(state: &mut V03State) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_amm_tests() -> 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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::config(), Accounts::config());
|
state.force_insert_account(Ids::config(), Accounts::config());
|
||||||
state.force_insert_account(Ids::pool_definition(), Accounts::pool_definition_init());
|
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::user_lp(), Accounts::user_lp_holding());
|
||||||
state.force_insert_account(Ids::vault_a(), Accounts::vault_a_init());
|
state.force_insert_account(Ids::vault_a(), Accounts::vault_a_init());
|
||||||
state.force_insert_account(Ids::vault_b(), Accounts::vault_b_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
|
state
|
||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_amm_tests_with_new_def() -> V03State {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::config(), Accounts::config());
|
state.force_insert_account(Ids::config(), Accounts::config());
|
||||||
state.force_insert_account(
|
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_a(), Accounts::user_a_holding());
|
||||||
state.force_insert_account(Ids::user_b(), Accounts::user_b_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
|
state
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1394,7 +1400,7 @@ fn fungible_total_supply(account: &Account) -> u128 {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn amm_initialize_creates_config_account() {
|
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);
|
deploy_programs(&mut state);
|
||||||
|
|
||||||
// Before initialization the config PDA does not exist.
|
// 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 {
|
fn initialized_amm_state() -> V03State {
|
||||||
let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0);
|
let mut state = V03State::new();
|
||||||
deploy_programs(&mut state);
|
deploy_programs(&mut state);
|
||||||
execute_initialize(&mut state);
|
execute_initialize(&mut state);
|
||||||
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
|
/// Advances the canonical 1-block clock to `timestamp` by writing the clock account directly into
|
||||||
/// how the sequencer ticks the clock between blocks. `RecordTick` reads this account, so the TWAP
|
/// state. `RecordTick` reads this account (`CLOCK_01_PROGRAM_ACCOUNT_ID`), so the TWAP tests use it
|
||||||
/// tests use it to simulate the passage of time between observations.
|
/// 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)]
|
#[cfg(test)]
|
||||||
fn advance_clock(state: &mut V03State, timestamp: u64) {
|
fn advance_clock(state: &mut V03State, timestamp: u64) {
|
||||||
let message = public_transaction::Message::try_new(
|
let data = ClockAccountData {
|
||||||
nssa::program::Program::clock().id(),
|
block_id: 0,
|
||||||
nssa::CLOCK_PROGRAM_ACCOUNT_IDS.to_vec(),
|
|
||||||
vec![],
|
|
||||||
timestamp,
|
timestamp,
|
||||||
)
|
}
|
||||||
.unwrap();
|
.to_bytes();
|
||||||
let witness_set = public_transaction::WitnessSet::for_message(&message, &[]);
|
let clock_account = Account {
|
||||||
let tx = PublicTransaction::new(message, witness_set);
|
data: Data::try_from(data).expect("clock account data fits"),
|
||||||
state.transition_from_public_transaction(&tx, 0, 0).unwrap();
|
..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),
|
/// Calls the TWAP oracle's permissionless `RecordTick` directly (it is not wrapped by the AMM),
|
||||||
|
|||||||
@ -145,7 +145,7 @@ fn deploy_programs(state: &mut V03State) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_ata_tests() -> 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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
||||||
state.force_insert_account(Ids::owner_ata(), Accounts::owner_ata_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]
|
#[test]
|
||||||
fn ata_create() {
|
fn ata_create() {
|
||||||
let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0);
|
let mut state = V03State::new();
|
||||||
deploy_programs(&mut state);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ fn ata_create_is_idempotent() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ata_create_rejects_definition_owned_by_unexpected_token_program() {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(
|
state.force_insert_account(
|
||||||
Ids::token_definition(),
|
Ids::token_definition(),
|
||||||
@ -264,7 +264,7 @@ fn ata_create_rejects_definition_owned_by_unexpected_token_program() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ata_create_rejects_existing_ata_owned_by_unexpected_token_program() {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
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]
|
#[test]
|
||||||
fn ata_create_rejects_existing_ata_with_mismatched_definition() {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
||||||
|
|
||||||
@ -503,7 +503,7 @@ fn ata_burn() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ata_create_from_private_owner() {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
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.
|
// 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 shared_secret = SharedSecretKey::encapsulate_deterministic(&owner_vpk, &[0u8; 32], 0).0;
|
||||||
|
|
||||||
let ata_program = Program::new(ata_methods::ATA_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()).unwrap();
|
let token_program = Program::new(token_methods::TOKEN_ELF.to_vec().into()).unwrap();
|
||||||
let program_with_deps = ProgramWithDependencies::new(
|
let program_with_deps = ProgramWithDependencies::new(
|
||||||
ata_program,
|
ata_program,
|
||||||
HashMap::from([(Ids::token_program(), token_program)]),
|
HashMap::from([(Ids::token_program(), token_program)]),
|
||||||
|
|||||||
@ -184,7 +184,7 @@ fn deploy_programs(state: &mut V03State) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_stablecoin_tests() -> 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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(
|
state.force_insert_account(
|
||||||
Ids::collateral_definition(),
|
Ids::collateral_definition(),
|
||||||
@ -199,7 +199,7 @@ fn current_nonce(state: &V03State, account_id: AccountId) -> Nonce {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_stablecoin_repay_tests() -> V03State {
|
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);
|
deploy_programs(&mut state);
|
||||||
state.force_insert_account(
|
state.force_insert_account(
|
||||||
Ids::collateral_definition(),
|
Ids::collateral_definition(),
|
||||||
|
|||||||
@ -113,7 +113,7 @@ fn deploy_token(state: &mut V03State) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn state_for_token_tests() -> 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);
|
deploy_token(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
||||||
state.force_insert_account(Ids::holder(), Accounts::holder_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 {
|
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);
|
deploy_token(&mut state);
|
||||||
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
state.force_insert_account(Ids::token_definition(), Accounts::token_definition_init());
|
||||||
state.force_insert_account(Ids::holder(), Accounts::holder_init());
|
state.force_insert_account(Ids::holder(), Accounts::holder_init());
|
||||||
@ -131,7 +131,7 @@ fn state_for_token_tests_without_recipient() -> V03State {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn token_new_fungible_definition() {
|
fn token_new_fungible_definition() {
|
||||||
let mut state = V03State::new_with_genesis_accounts(&[], vec![], 0);
|
let mut state = V03State::new();
|
||||||
deploy_token(&mut state);
|
deploy_token(&mut state);
|
||||||
|
|
||||||
let instruction = token_core::Instruction::NewFungibleDefinition {
|
let instruction = token_core::Instruction::NewFungibleDefinition {
|
||||||
@ -643,7 +643,7 @@ impl PrivateKeys {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn token_program() -> Program {
|
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
|
/// Performs a shielded transfer (public → private) of `amount` tokens from
|
||||||
|
|||||||
@ -4,6 +4,6 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
stablecoin_core = { path = "core" }
|
||||||
token_core = { path = "../token/core" }
|
token_core = { path = "../token/core" }
|
||||||
|
|||||||
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[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"] }
|
borsh = { version = "1.5", features = ["derive"] }
|
||||||
alloy-primitives = { version = "1", default-features = false }
|
alloy-primitives = { version = "1", default-features = false }
|
||||||
# Pin ruint (transitive via alloy-primitives) below 1.18, which raised its MSRV to rustc 1.90.
|
# Pin ruint (transitive via alloy-primitives) below 1.18, which raised its MSRV to rustc 1.90.
|
||||||
|
|||||||
8
programs/stablecoin/methods/guest/Cargo.lock
generated
8
programs/stablecoin/methods/guest/Cargo.lock
generated
@ -1588,7 +1588,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2601,7 +2601,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework"
|
name = "spel-framework"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -2613,7 +2613,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2630,7 +2630,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -15,7 +15,7 @@ path = "src/bin/stablecoin.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
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 }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
twap_oracle_core = { path = "../../../twap_oracle/core" }
|
twap_oracle_core = { path = "../../../twap_oracle/core" }
|
||||||
stablecoin_core = { path = "../../core" }
|
stablecoin_core = { path = "../../core" }
|
||||||
|
|||||||
@ -7,5 +7,5 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
token_core = { path = "core" }
|
||||||
|
|||||||
@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
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"] }
|
borsh = { version = "1.5", features = ["derive"] }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|||||||
8
programs/token/methods/guest/Cargo.lock
generated
8
programs/token/methods/guest/Cargo.lock
generated
@ -1065,7 +1065,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -1822,7 +1822,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework"
|
name = "spel-framework"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -1834,7 +1834,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -1851,7 +1851,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -57,7 +57,7 @@ path = "src/bin/token.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
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 }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
# Pin ruint (transitive via risc0-binfmt) below 1.18, which raised its MSRV to
|
# 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
|
# rustc 1.90. The risc0 guest toolchain ships rustc 1.88, so 1.18+ fails the
|
||||||
|
|||||||
@ -4,8 +4,8 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
||||||
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" }
|
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.0-rc6" }
|
||||||
twap_oracle_core = { path = "core" }
|
twap_oracle_core = { path = "core" }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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"] }
|
borsh = { version = "1.5", features = ["derive"] }
|
||||||
serde = { version = "1.0", 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" }
|
spel-framework-macros = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework-macros" }
|
||||||
|
|||||||
10
programs/twap_oracle/methods/guest/Cargo.lock
generated
10
programs/twap_oracle/methods/guest/Cargo.lock
generated
@ -691,7 +691,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "clock_core"
|
name = "clock_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -1597,7 +1597,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lee_core"
|
name = "lee_core"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2610,7 +2610,7 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework"
|
name = "spel-framework"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"borsh",
|
"borsh",
|
||||||
"lee_core",
|
"lee_core",
|
||||||
@ -2622,7 +2622,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-core"
|
name = "spel-framework-core"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"base58",
|
"base58",
|
||||||
"borsh",
|
"borsh",
|
||||||
@ -2639,7 +2639,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spel-framework-macros"
|
name = "spel-framework-macros"
|
||||||
version = "0.5.0"
|
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 = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@ -15,8 +15,8 @@ path = "src/bin/twap_oracle.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spel-framework = { git = "https://github.com/0x-r4bbit/spel.git", branch = "refactor/lez-v020-compat", package = "spel-framework" }
|
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" }
|
||||||
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "lez-core-v0.2.0" }
|
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 }
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|
||||||
twap_oracle_core = { path = "../../core" }
|
twap_oracle_core = { path = "../../core" }
|
||||||
twap_oracle_program = { path = "../..", package = "twap_oracle_program" }
|
twap_oracle_program = { path = "../..", package = "twap_oracle_program" }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user