Skip to content

Chore/blockifier/version update #2848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 26, 2025

Conversation

EgeCaner
Copy link
Contributor

@EgeCaner EgeCaner commented May 20, 2025

  • Blockifier version updated to latest commit (not tagged release yet).
  • Depencies are updated accordingly.
  • New Blockifier::VersionedConstants were breaking the related tests under vm_test.go due to change in the schema of those constant, related data is updated using this as source.
  • 'Tip' field is utilizd in fee calculation.
  • Linter suggestions addressed.
  • AccountExecutionFlags do expect strict_nonce_check field

! Requires rust version >=1.86.0

EgeCaner added 5 commits May 20, 2025 14:30
…onstants from file and update files 'versioned_constants/' to be compatible with new version
…k_context' field from 'BlockContext' to 'Arc<BlockContext>'
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (0.14.0-beta@97e6904). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             0.14.0-beta    #2848   +/-   ##
==============================================
  Coverage               ?   75.82%           
==============================================
  Files                  ?      186           
  Lines                  ?    20464           
  Branches               ?        0           
==============================================
  Hits                   ?    15516           
  Misses                 ?     3973           
  Partials               ?      975           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Minimum supported Rust version is 1.86.0, previous 1.85.1. Please update the README file, the Makefile, and this workflow.

@EgeCaner EgeCaner changed the base branch from main to 0.14.0-beta May 20, 2025 15:43
Copy link
Contributor

Minimum supported Rust version is 1.86.0, previous 1.85.1. Please update the README file, the Makefile, and this workflow.

@EgeCaner EgeCaner marked this pull request as ready for review May 22, 2025 09:10
Copy link
Contributor

@rodrigo-pino rodrigo-pino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -458,6 +459,10 @@ pub extern "C" fn cairoVMExecute(
l2_gas: l2_gas_consumed,
},
&fee_type,
match txn {
Transaction::Account(txn) => txn.tip(),
Transaction::L1Handler(_) => starknet_api::transaction::fields::Tip(0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short name here (just Tip(0)). No need for the long name I believe

Comment on lines -799 to +804
let mut file = File::open(Path::new(&path))
.with_context(|| format!("Failed to open file: {}", path))?;

let mut contents = String::new();
file.read_to_string(&mut contents)
.with_context(|| format!("Failed to read contents of file: {}", path))?;

let constants: VersionedConstants = serde_json::from_str(&contents)
let constants = VersionedConstants::from_path(Path::new(&path))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@EgeCaner EgeCaner requested a review from infrmtcs May 22, 2025 11:52
@rodrigo-pino rodrigo-pino merged commit bb5c734 into 0.14.0-beta May 26, 2025
5 checks passed
@rodrigo-pino rodrigo-pino deleted the chore/blockifier/version-update branch May 26, 2025 20:59
EgeCaner added a commit that referenced this pull request Jun 9, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 10, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 11, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 24, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 24, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 25, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 27, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 29, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jun 29, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jul 2, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jul 17, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jul 18, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
EgeCaner added a commit that referenced this pull request Jul 18, 2025
* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
rodrigo-pino added a commit that referenced this pull request Jul 18, 2025
* Chore/blockifier/version update (#2848)

* bump blockifier version

* Blockifier VersionedConstants: use function from blockifier to read constants from file and update files 'versioned_constants/' to be compatible with new version

* Use Tip field

* Set 'strict_nonce_check' field to 'true' and 'TransactionContext.block_context' field from 'BlockContext' to 'Arc<BlockContext>'

* Address linter suggestion

* Updated minimum requried rust version in README and MAKEFILE

* use short name for 'Tip'

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>

* blockifier version update to new release candidate (#2869)

* blockifier version bumped to release candidate

* blockifier versioned constants updated

* fix proposer test

* feat:(Blockifier): convert l2 gas to l1 gas when NoL2Gas  (#2942)

Blockifier, convert l2 gas to l1 gas when NoL2Gas GasVectorComputationMode and use overidden values in response

* Fix/trace result inner execution resources (#2964)

* blockifier feature node_api

* trace return inner execution resources l1_gas and l2_gas

* feat: rpcv9 l1 handler traces return revert reason (#2941)

* L1Handler Tx Trace is not REVERTIBLE_FUNCTION_INVOCATION

* L1Handler traces return revert reason

* RPC version < 9 returns dummy L1_Handler trace for reverted trace

* update comments

* fix test

* use ExecuteInvocation.FunctionInvocation == nil as reverted flag

* Add test for reverted L1Handler trace

* add AdaptVMTransaction L1Handler reverted for rpc < 9

* update Proposal test for 0.14.0

* update rust version workflow

---------

Co-authored-by: Rodrigo <rodrodpino@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants