From 24343e420181ea430ef06624bb5ebcb735422f21 Mon Sep 17 00:00:00 2001 From: yoavGrs <97383386+yoavGrs@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:43:50 +0200 Subject: [PATCH] feat(blockifier): add comprehensive state diff versioned constant (#2407) --- crates/blockifier/resources/versioned_constants_0_13_0.json | 1 + crates/blockifier/resources/versioned_constants_0_13_1.json | 1 + crates/blockifier/resources/versioned_constants_0_13_1_1.json | 1 + crates/blockifier/resources/versioned_constants_0_13_2.json | 1 + crates/blockifier/resources/versioned_constants_0_13_2_1.json | 1 + crates/blockifier/resources/versioned_constants_0_13_3.json | 1 + crates/blockifier/resources/versioned_constants_0_13_4.json | 1 + crates/blockifier/src/versioned_constants.rs | 1 + 8 files changed, 8 insertions(+) diff --git a/crates/blockifier/resources/versioned_constants_0_13_0.json b/crates/blockifier/resources/versioned_constants_0_13_0.json index 294fa14ecc..fd98c3ef07 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_0.json +++ b/crates/blockifier/resources/versioned_constants_0_13_0.json @@ -9,6 +9,7 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_1.json b/crates/blockifier/resources/versioned_constants_0_13_1.json index d70e03cc55..2b634be904 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_1.json @@ -42,6 +42,7 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_1_1.json b/crates/blockifier/resources/versioned_constants_0_13_1_1.json index 20463ac307..17d83179e5 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_1_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_1_1.json @@ -42,6 +42,7 @@ "segment_arena_cells": true, "disable_cairo0_redeclaration": false, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_2.json b/crates/blockifier/resources/versioned_constants_0_13_2.json index e02561d466..edec011294 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_2.json +++ b/crates/blockifier/resources/versioned_constants_0_13_2.json @@ -40,6 +40,7 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_2_1.json b/crates/blockifier/resources/versioned_constants_0_13_2_1.json index 0cc5406078..aa76c68c45 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_2_1.json +++ b/crates/blockifier/resources/versioned_constants_0_13_2_1.json @@ -40,6 +40,7 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_3.json b/crates/blockifier/resources/versioned_constants_0_13_3.json index 0cc5406078..aa76c68c45 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_3.json +++ b/crates/blockifier/resources/versioned_constants_0_13_3.json @@ -40,6 +40,7 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": false, + "comprehensive_state_diff": false, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/resources/versioned_constants_0_13_4.json b/crates/blockifier/resources/versioned_constants_0_13_4.json index f8c835060d..3993b8567d 100644 --- a/crates/blockifier/resources/versioned_constants_0_13_4.json +++ b/crates/blockifier/resources/versioned_constants_0_13_4.json @@ -40,6 +40,7 @@ }, "disable_cairo0_redeclaration": true, "enable_stateful_compression": true, + "comprehensive_state_diff": true, "allocation_cost": { "blob_cost": { "l1_gas": 0, diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index 7be354b494..5c41d18b4d 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -192,6 +192,7 @@ pub struct VersionedConstants { // Transactions settings. pub disable_cairo0_redeclaration: bool, pub enable_stateful_compression: bool, + pub comprehensive_state_diff: bool, pub ignore_inner_event_resources: bool, // Compiler settings.