-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump
blockifier
to support Cairo 2.7 (#2180)
* workign bump for blockifier to ver 2.7. of cairo * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * no error * update resources log * remove commented code * clippy * fmt * restore lockfile * remove comment * remove unused dep * fmt * wip * update blockifier rev * fmt * Update crates/katana/executor/src/implementation/blockifier/state.rs Co-authored-by: glihm <[email protected]> * Update crates/katana/executor/src/implementation/blockifier/state.rs Co-authored-by: glihm <[email protected]> * apply suggestion * remove dbg --------- Co-authored-by: glihm <[email protected]>
- Loading branch information
Showing
30 changed files
with
851 additions
and
1,088 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,5 @@ | ||
use std::collections::HashMap; | ||
|
||
use cairo_vm::vm::runners::builtin_runner::{ | ||
BITWISE_BUILTIN_NAME, EC_OP_BUILTIN_NAME, HASH_BUILTIN_NAME, KECCAK_BUILTIN_NAME, | ||
OUTPUT_BUILTIN_NAME, POSEIDON_BUILTIN_NAME, RANGE_CHECK_BUILTIN_NAME, | ||
SEGMENT_ARENA_BUILTIN_NAME, SIGNATURE_BUILTIN_NAME, | ||
}; | ||
|
||
#[derive(Debug, Default)] | ||
pub struct BlockContextGenerator { | ||
pub block_timestamp_offset: i64, | ||
pub next_block_start_time: u64, | ||
} | ||
|
||
pub fn get_default_vm_resource_fee_cost() -> HashMap<String, f64> { | ||
HashMap::from([ | ||
(String::from("n_steps"), 1_f64), | ||
(HASH_BUILTIN_NAME.to_string(), 1_f64), | ||
(RANGE_CHECK_BUILTIN_NAME.to_string(), 1_f64), | ||
(SIGNATURE_BUILTIN_NAME.to_string(), 1_f64), | ||
(BITWISE_BUILTIN_NAME.to_string(), 1_f64), | ||
(POSEIDON_BUILTIN_NAME.to_string(), 1_f64), | ||
(OUTPUT_BUILTIN_NAME.to_string(), 1_f64), | ||
(EC_OP_BUILTIN_NAME.to_string(), 1_f64), | ||
(KECCAK_BUILTIN_NAME.to_string(), 1_f64), | ||
(SEGMENT_ARENA_BUILTIN_NAME.to_string(), 1_f64), | ||
]) | ||
} |
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
Oops, something went wrong.