-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into express-lane-timeboost
Roll back express_lane_service_test.go use of CalldataUnits to mean an errored tx and go back to using nil. Check for nil before dereferencing the tx when generating an error message now.
- Loading branch information
Showing
134 changed files
with
8,977 additions
and
1,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2024, Offchain Labs, Inc. | ||
// For license information, see https://github.com/nitro/blob/master/LICENSE | ||
|
||
use crate::evm::api::Ink; | ||
use std::time::{Duration, Instant}; | ||
|
||
// Benchmark is used to track the performance of blocks of code in stylus | ||
#[derive(Clone, Copy, Debug, Default)] | ||
pub struct Benchmark { | ||
pub timer: Option<Instant>, | ||
pub elapsed_total: Duration, | ||
pub ink_start: Option<Ink>, | ||
pub ink_total: Ink, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2021-2024, Offchain Labs, Inc. | ||
// For license information, see https://github.com/OffchainLabs/nitro/blob/master/LICENSE | ||
|
||
use std::path::PathBuf; | ||
use structopt::StructOpt; | ||
|
||
mod arbcompress; | ||
mod caller_env; | ||
pub mod machine; | ||
mod prepare; | ||
pub mod program; | ||
mod socket; | ||
pub mod stylus_backend; | ||
mod test; | ||
mod wasip1_stub; | ||
mod wavmio; | ||
|
||
#[derive(StructOpt)] | ||
#[structopt(name = "jit-prover")] | ||
pub struct Opts { | ||
#[structopt(short, long)] | ||
binary: PathBuf, | ||
#[structopt(long, default_value = "0")] | ||
inbox_position: u64, | ||
#[structopt(long, default_value = "0")] | ||
delayed_inbox_position: u64, | ||
#[structopt(long, default_value = "0")] | ||
position_within_message: u64, | ||
#[structopt(long)] | ||
last_block_hash: Option<String>, | ||
#[structopt(long)] | ||
last_send_root: Option<String>, | ||
#[structopt(long)] | ||
inbox: Vec<PathBuf>, | ||
#[structopt(long)] | ||
delayed_inbox: Vec<PathBuf>, | ||
#[structopt(long)] | ||
preimages: Option<PathBuf>, | ||
#[structopt(long)] | ||
cranelift: bool, | ||
#[structopt(long)] | ||
forks: bool, | ||
#[structopt(long)] | ||
pub debug: bool, | ||
#[structopt(long)] | ||
pub require_success: bool, | ||
// JSON inputs supercede any of the command-line inputs which could | ||
// be specified in the JSON file. | ||
#[structopt(long)] | ||
json_inputs: Option<PathBuf>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.