This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TITLE
Description
This PR aims to use the production version of blockifier, this crate depends on an old cairo-vm version. The next changes introduced in the current vm version will be lost:
fix:
Program
comparison depending onhints_ranges
ordering #1351feat: implement the
--air_public_input
flag to the runner for outputting public inputs into a file #1268fix: CLI errors bad formatting and handling
perf: replace insertion with bit-setting in validated addresses #1208
fix: return error when a parsed hint's PC is invalid #1340
chore(deps): bump cairo-lang dependencies to v2.1.0-rc2 #1345
chore(examples): remove wee_alloc dependency from wasm-demo example and ensure-no_std dummy crate #1337
docs: improved crate documentation #1334
chore!: made
deserialize_utils
module private #1334BREAKING:
deserialize_utils
is no longer exportedmaybe_add_padding
,parse_value
, andtake_until_unbalanced
are no longer exportedReferenceParseError
is no moreperf: changed
ok_or
usage forok_or_else
in expensive cases #1332feat: updated the old WASM example and moved it to
examples/wasm-demo
#1315feat(fuzzing): add
arbitrary
feature to enable arbitrary derive inProgram
andCairoRunConfig
#1306 #1330perf: remove pointless iterator from rc limits tracking #1316
feat(felt): add
from_bytes_le
andfrom_bytes_ne
methods toFelt252
#1326perf: change
Program::shared_program_data::hints
fromHashMap<usize, Vec<Box<dyn Any>>>
toVec<Box<dyn Any>>
and refer to them as ranges stored in aVec<_>
indexed by PC with run time reductions of up to 12% #931BREAKING:
get_hint_dictionary(&self, &[HintReference], &mut dyn HintProcessor) -> Result<HashMap<usize, Vec<Box<dyn Any>>, VirtualMachineError>
->get_hint_data(self, &[HintReference], &mut dyn HintProcessor) -> Result<Vec<Box<dyn Any>, VirtualMachineError>
&[Box<dyn Any>]
rather than&HashMap<usize, Vec<Box<dyn Any>>>