Skip to content

Commit

Permalink
chore: update kona (#174)
Browse files Browse the repository at this point in the history
* chore: update kona

* feat: more cleanup, simplify
  • Loading branch information
ratankaliani authored Oct 18, 2024
1 parent fadc4bf commit 91db989
Show file tree
Hide file tree
Showing 13 changed files with 173 additions and 74 deletions.
44 changes: 18 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions configs/808813/rollup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"genesis": {
"l1": {
"number": 6404314,
"hash": "0x3908ceae1d5aa3135f57fa1017231bb62c2e661e966a68fe80fd7dff0a2e7564"
},
"l2": {
"number": 0,
"hash": "0xa286e5b6f82269ac1477f4136c09fb5c2ac9f005837ed2852610fc3e559b7256"
},
"l2_time": 1722352488,
"system_config": {
"batcherAddr": "0x0c2ac914b2378e5afaecbab08a171c769d34947c",
"overhead": "0xbc",
"scalar": "0xa6fe0",
"gasLimit": 30000000,
"baseFeeScalar": null,
"blobBaseFeeScalar": null,
"eip1559Denominator": null,
"eip1559Elasticity": null
}
},
"block_time": 2,
"max_sequencer_drift": 600,
"seq_window_size": 3600,
"channel_timeout": 300,
"granite_channel_timeout": 50,
"l1_chain_id": 11155111,
"l2_chain_id": 808813,
"base_fee_params": {
"max_change_denominator": "0x32",
"elasticity_multiplier": "0x6"
},
"canyon_base_fee_params": {
"max_change_denominator": "0xfa",
"elasticity_multiplier": "0x6"
},
"regolith_time": 0,
"canyon_time": 0,
"delta_time": 0,
"ecotone_time": 0,
"fjord_time": 0,
"granite_time": 1725984001,
"batch_inbox_address": "0x734dde12fd466c14a85de838788efe6f1993c84c",
"deposit_contract_address": "0xbaaf3bafdbd660380938b27d21c31bb7d072a799",
"l1_system_config_address": "0x3974436fa4bb4deb5a04ace51a704b10ff5a1f25",
"protocol_versions_address": "0x0000000000000000000000000000000000000000"
}
Binary file modified elf/aggregation-elf
Binary file not shown.
Binary file modified elf/fault-proof-elf
Binary file not shown.
Binary file modified elf/range-elf
Binary file not shown.
5 changes: 0 additions & 5 deletions programs/fault-proof/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ homepage.workspace = true
cfg-if.workspace = true
serde_json.workspace = true

# workspace (ethereum)
alloy-consensus.workspace = true

# sp1
sp1-zkvm = { workspace = true }

# kona
kona-primitives.workspace = true
kona-executor.workspace = true
kona-client.workspace = true

# op-succinct
Expand Down
2 changes: 0 additions & 2 deletions programs/range/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ alloy-eips.workspace = true
sp1-zkvm.workspace = true

# kona
kona-primitives.workspace = true
kona-executor.workspace = true
kona-client.workspace = true
kona-derive.workspace = true

# op-succinct
op-succinct-client-utils.workspace = true
14 changes: 6 additions & 8 deletions programs/range/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use kona_client::{
l1::{OracleBlobProvider, OracleL1ChainProvider},
BootInfo,
};
use kona_executor::StatelessL2BlockExecutor;
use log::info;
use op_alloy_consensus::{OpBlock, OpTxEnvelope};
use op_succinct_client_utils::{
Expand Down Expand Up @@ -117,14 +116,13 @@ fn main() {
println!("cycle-tracker-report-end: payload-derivation");

println!("cycle-tracker-start: execution-instantiation");
let mut executor = StatelessL2BlockExecutor::builder(
let mut executor = driver.new_executor(
&boot.rollup_config,
l2_provider.clone(),
l2_provider.clone(),
)
.with_parent_header(driver.clone_l2_safe_head_header())
.with_handle_register(zkvm_handle_register)
.build();
&l2_provider,
&l2_provider,
zkvm_handle_register,
);

println!("cycle-tracker-end: execution-instantiation");

let mut l2_block_info;
Expand Down
4 changes: 0 additions & 4 deletions scripts/prove/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ clap = { workspace = true }
cargo_metadata = { workspace = true }
anyhow.workspace = true
dotenv.workspace = true
num-format.workspace = true
csv.workspace = true

# local
op-succinct-host-utils.workspace = true
op-succinct-client-utils.workspace = true

# op-alloy
op-alloy-genesis.workspace = true

# sp1
sp1-sdk = { workspace = true }

Expand Down
3 changes: 2 additions & 1 deletion scripts/prove/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ fn build_zkvm_program(program: &str) {
&format!("../../programs/{}", program),
BuildArgs {
elf_name: format!("{}-elf", program),
// docker: true,
docker: true,
tag: "v3.0.0-rc4".to_string(),
..Default::default()
},
);
Expand Down
3 changes: 1 addition & 2 deletions utils/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ op-alloy-rpc-types-engine.workspace = true

# workspace (kona)
kona-common.workspace = true
kona-primitives.workspace = true
kona-client.workspace = true
kona-preimage.workspace = true
kona-mpt.workspace = true
kona-derive.workspace = true

kona-executor.workspace = true
# general
serde.workspace = true
rkyv.workspace = true
Expand Down
Loading

0 comments on commit 91db989

Please sign in to comment.