Skip to content

Commit 013369f

Browse files
authored
Release 0.51.2 (#3895)
<!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> - Forced Cairo 2.12.3 for all packages - Set up required envs in scheduled tests and build jobs - Replaced blast api in generated code with placeholder URL ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [ ] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md`
1 parent 8dbe201 commit 013369f

File tree

23 files changed

+150
-154
lines changed

23 files changed

+150
-154
lines changed

.github/workflows/_build-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
required: false
1212
type: string
1313

14+
env:
15+
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
16+
1417
jobs:
1518
build-binaries:
1619
name: Build ${{ matrix.target }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
needs: verify-version
6262
if: ${{ needs.verify-version.outputs.versionIsValid == 'true' }}
6363
uses: ./.github/workflows/_build-binaries.yml
64+
secrets: inherit
6465
with:
6566
version: ${{ needs.verify-version.outputs.version }}
6667

.github/workflows/scheduled.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- cron: '0 0 * * 3'
1212
workflow_dispatch:
1313

14+
env:
15+
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
16+
1417
jobs:
1518
get-scarb-versions:
1619
if: github.event.repository.fork == false
@@ -190,6 +193,7 @@ jobs:
190193
build-binaries:
191194
needs: [ get-version ]
192195
uses: ./.github/workflows/_build-binaries.yml
196+
secrets: inherit
193197
with:
194198
version: ${{ needs.get-version.outputs.version }}-test.${{ github.run_id }}
195199

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
- Gas values in fuzzing test output are now displayed as whole numbers without fractional parts
1515

16+
## [0.51.2] - 2025-10-31
17+
18+
### Cast
19+
20+
#### Changed
21+
22+
- Replaced the free RPC provider used.
23+
1624
## [0.51.1] - 2025-10-23
1725

1826
### Forge

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ inherits = "release"
2727
debug-assertions = true
2828

2929
[workspace.package]
30-
version = "0.51.1"
30+
version = "0.51.2"
3131
edition = "2024"
3232
repository = "https://github.com/foundry-rs/starknet-foundry"
3333
license = "MIT"
@@ -40,18 +40,18 @@ bigdecimal = "0.4.8"
4040
# TODO(#3770) Use starknet_api directly
4141
starknet_api = { git = "https://github.com/software-mansion-labs/sequencer.git", branch = "main-v0.14.0" }
4242
cairo-native = "0.6.2"
43-
cairo-lang-casm = { version = "2.12.3", features = ["serde"] }
44-
cairo-lang-sierra = "2.12.3"
45-
cairo-lang-utils = "2.12.3"
46-
cairo-lang-starknet = "2.12.3"
47-
cairo-lang-filesystem = "2.12.3"
48-
cairo-lang-diagnostics = "2.12.3"
49-
cairo-lang-sierra-type-size = "2.12.3"
50-
cairo-lang-syntax = "2.12.3"
51-
cairo-lang-test-plugin = "2.12.3"
52-
cairo-lang-starknet-classes = "2.12.3"
53-
cairo-lang-parser = "2.12.3"
54-
cairo-lang-sierra-to-casm = "2.12.3"
43+
cairo-lang-casm = { version = "=2.12.3", features = ["serde"] }
44+
cairo-lang-sierra = "=2.12.3"
45+
cairo-lang-utils = "=2.12.3"
46+
cairo-lang-starknet = "=2.12.3"
47+
cairo-lang-filesystem = "=2.12.3"
48+
cairo-lang-diagnostics = "=2.12.3"
49+
cairo-lang-sierra-type-size = "=2.12.3"
50+
cairo-lang-syntax = "=2.12.3"
51+
cairo-lang-test-plugin = "=2.12.3"
52+
cairo-lang-starknet-classes = "=2.12.3"
53+
cairo-lang-parser = "=2.12.3"
54+
cairo-lang-sierra-to-casm = "=2.12.3"
5555
cairo-vm = "2.5.0"
5656
cairo-annotations = { version = "0.6.1", features = ["cairo-lang"] }
5757
dirs = "6.0.0"

Cross.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build.env]
2+
passthrough = ["ALCHEMY_API_KEY"]
3+
14
# TODO(#3790) Setup cross for native
25
#[build]
36
#pre-build = [

crates/forge/src/new.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use include_dir::{Dir, DirEntry, include_dir};
66
use indoc::formatdoc;
77
use scarb_api::{ScarbCommand, ensure_scarb_available};
88
use semver::Version;
9-
use shared::consts::free_rpc_provider_url;
109
use std::env;
1110
use std::fs::{self, OpenOptions};
1211
use std::io::Write;
@@ -152,15 +151,14 @@ fn create_snfoundry_manifest(path: &PathBuf) -> Result<()> {
152151
# and https://foundry-rs.github.io/starknet-foundry/projects/configuration.html for more information
153152
154153
# [sncast.default] # Define a profile name
155-
# url = "{default_rpc_url}" # Url of the RPC provider
154+
# url = "<YOUR_RPC_PROVIDER>" # Url of the RPC provider
156155
# accounts-file = "../account-file" # Path to the file with the account data
157156
# account = "mainuser" # Account from `accounts_file` or default account file that will be used for the transactions
158157
# keystore = "~/keystore" # Path to the keystore file
159158
# wait-params = {{ timeout = 300, retry-interval = 10 }} # Wait for submitted transaction parameters
160159
# block-explorer = "StarkScan" # Block explorer service used to display links to transaction details
161160
# show-explorer-links = true # Print links pointing to pages with transaction details in the chosen block explorer
162161
"#,
163-
default_rpc_url = free_rpc_provider_url(),
164162
},
165163
)?;
166164

@@ -309,7 +307,7 @@ fn add_fork_config(document: &mut DocumentMut) -> Result<()> {
309307

310308
let mut fork_table = Table::new();
311309
fork_table.insert("name", Item::Value(Value::from("SEPOLIA_LATEST")));
312-
fork_table.insert("url", Item::Value(Value::from(free_rpc_provider_url())));
310+
fork_table.insert("url", Item::Value(Value::from("<YOUR_RPC_PROVIDER>")));
313311

314312
let mut block_id_table = Table::new();
315313
block_id_table.insert("tag", Item::Value(Value::from("latest")));
Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

crates/forge/tests/e2e/new.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use forge::scarb::config::SCARB_MANIFEST_TEMPLATE_CONTENT;
77
use indoc::{formatdoc, indoc};
88
use regex::Regex;
99
use scarb_api::ScarbCommand;
10-
use shared::consts::free_rpc_provider_url;
1110
use shared::test_utils::output_assert::assert_stdout_contains;
1211
use snapbox::assert_matches;
1312
use snapbox::cmd::Command as SnapboxCommand;
@@ -24,7 +23,8 @@ static RE_NEWLINES: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\n{3,}").unw
2423

2524
#[test_case(&Template::CairoProgram; "cairo-program")]
2625
#[test_case(&Template::BalanceContract; "balance-contract")]
27-
#[test_case(&Template::Erc20Contract; "erc20-contract")]
26+
// TODO(#3896) restore this test case
27+
// #[test_case(&Template::Erc20Contract; "erc20-contract")]
2828
fn create_new_project_dir_not_exist(template: &Template) {
2929
let temp = tempdir_with_tool_versions().unwrap();
3030
let project_path = temp.join("new").join("project");
@@ -183,13 +183,12 @@ fn get_expected_manifest_content(template: &Template, validate_snforge_std: bool
183183

184184
let target_contract_entry = "[[target.starknet-contract]]\nsierra = true";
185185

186-
let free_rpc_provider_url = free_rpc_provider_url();
187186
let fork_config = if let Template::Erc20Contract = template {
188187
&formatdoc!(
189188
r#"
190189
[[tool.snforge.fork]]
191190
name = "SEPOLIA_LATEST"
192-
url = "{free_rpc_provider_url}"
191+
url = "<YOUR_RPC_PROVIDER"
193192
block_id = {{ tag = "latest" }}
194193
"#
195194
)

0 commit comments

Comments
 (0)