Skip to content

Commit 497e061

Browse files
authored
feat(programs): rkyv serialization (#332)
* feat: rkyv cross-platform requires no arc * add" * add * fix * add * add * add
1 parent 2b7f572 commit 497e061

File tree

11 files changed

+48
-211
lines changed

11 files changed

+48
-211
lines changed

Cargo.lock

+14-122
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ reqwest = { version = "0.12", features = ["json"] }
3030
csv = "1.3.0"
3131
serde = { version = "1.0.198", features = ["derive"] }
3232
serde_json = { version = "1.0.117", default-features = false }
33-
rkyv = {version = "0.7"}
33+
rkyv = { version = "0.8", features = ["bytecheck"] }
3434
hex = "0.4.3"
3535
bincode = "1.3.3"
3636
base64 = "0.22.1"
@@ -90,7 +90,7 @@ op-alloy-network = { version = "0.6.8", default-features = false }
9090
# sp1
9191
sp1-lib = { version = "4.0.0", features = ["verify"] }
9292
sp1-sdk = { version = "4.0.0" }
93-
sp1-zkvm = {version = "4.0.0", features = ["verify", "embedded"] }
93+
sp1-zkvm = { version = "4.0.0", features = ["verify", "embedded"] }
9494
sp1-build = { version = "4.0.0" }
9595

9696
[profile.release-client-lto]

configs/10/rollup.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"ecotone_time": 1710374401,
4242
"fjord_time": 1720627201,
4343
"granite_time": 1726070401,
44+
"holocene_time": 1736445601,
4445
"batch_inbox_address": "0xff00000000000000000000000000000000000010",
4546
"deposit_contract_address": "0xbeb5fc579115071764c7423a4f12edde41f106ed",
4647
"l1_system_config_address": "0x229047fed2591dbec1ef1118d64f7af3db9eb290",

elf/aggregation-elf

52 Bytes
Binary file not shown.

elf/range-elf

1.75 KB
Binary file not shown.

scripts/prove/Cargo.toml

-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ clap = { workspace = true }
2323
cargo_metadata = { workspace = true }
2424
anyhow.workspace = true
2525
dotenv.workspace = true
26-
num-format.workspace = true
2726
csv.workspace = true
2827

2928
# kona
@@ -34,12 +33,8 @@ op-succinct-host-utils.workspace = true
3433
op-succinct-client-utils.workspace = true
3534
op-succinct-scripts = { path = "../utils" }
3635

37-
# op-alloy
38-
op-alloy-genesis.workspace = true
39-
4036
# alloy
4137
alloy-primitives = { workspace = true }
42-
alloy-eips = { workspace = true }
4338

4439
# sp1
4540
sp1-sdk = { workspace = true }

scripts/utils/Cargo.toml

-6
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,8 @@ kona-host = { workspace = true }
5757
op-succinct-host-utils.workspace = true
5858
op-succinct-client-utils.workspace = true
5959

60-
# op-alloy
61-
op-alloy-consensus.workspace = true
62-
op-alloy-network.workspace = true
63-
op-alloy-rpc-types.workspace = true
64-
6560
# sp1
6661
sp1-sdk = { workspace = true }
67-
dashmap = { version = "6.1.0", features = ["rayon"] }
6862

6963
[build-dependencies]
7064
op-succinct-build-utils.workspace = true

utils/build/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ fn build_zkvm_program(program: &str) {
8787
&format!("{}/{}", metadata.workspace_root.join("programs"), program),
8888
BuildArgs {
8989
elf_name: Some(format!("{}-elf", program)),
90+
output_directory: Some("../../elf".to_string()),
9091
docker: true,
9192
tag: "v4.0.0-rc.10".to_string(),
9293
..Default::default()

utils/client/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mod executor;
88
pub use executor::block_on;
99

1010
mod oracle;
11-
pub use oracle::InMemoryOracle;
11+
pub use oracle::{InMemoryOracle, InMemoryOracleData};
1212

1313
pub mod precompiles;
1414

0 commit comments

Comments
 (0)