Skip to content

Commit 2f4d1f7

Browse files
Merge branch 'main' into chore/update-redirects
2 parents 438bc59 + e2ae8d0 commit 2f4d1f7

153 files changed

Lines changed: 21669 additions & 2695 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sync-search.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sync Search Content
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
sync-search:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Bun
18+
uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: latest
21+
22+
- name: Install dependencies
23+
run: bun install
24+
25+
- name: Run sync search content
26+
run: bun run scripts/sync-search-content.ts
27+
env:
28+
NEXT_PUBLIC_ALGOLIA_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_ID }}
29+
ALGOLIA_PRIVATE_KEY: ${{ secrets.ALGOLIA_PRIVATE_KEY }}

content/contracts-cairo/2.x/wizard.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ contract and learn about the components offered in OpenZeppelin Contracts for Ca
99
We strongly recommend checking the [Components](./components) section to understand how to extend from our library.
1010
</Callout>
1111

12-
<OZWizard lang="cairo" version="3.0.0-alpha.2" />
12+
<OZWizard lang="cairo" version="2.0.0" />

content/contracts-cairo/alpha/api/utilities.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,42 @@ Origin-independent deployments (deployed from zero) should pass `Option::None` a
167167
Origin-dependent deployments hash `salt` with `caller_address` (member of [DeployerInfo](#deployments-DeployerInfo)) and pass the hashed salt to the inner [deploy\_syscall](https://docs.starknet.io/architecture-and-concepts/smart-contracts/system-calls-cairo1/#deploy) as the `contract_address_salt` argument.
168168
</APIItem>
169169

170+
### `execution` [toc] [#execution]
171+
172+
<APIGithubLinkHeader moduleName="execution" link={`https://github.com/OpenZeppelin/cairo-contracts/blob/${UMBRELLA_VERSION}/packages/utils/src/execution.cairo`} />
173+
174+
```rust
175+
use openzeppelin_utils::execution;
176+
```
177+
178+
Module containing utilities related to execution.
179+
180+
#### Functions [!toc] [#execution-Functions]
181+
182+
<APIItem
183+
functionSignature="execute_calls(calls: Span<Call>) → Array<Span<felt252>>"
184+
id="execution-execute_calls"
185+
kind="function"
186+
>
187+
Executes a list of calls and returns an array containing the return values from each call.
188+
</APIItem>
189+
190+
<APIItem
191+
functionSignature="execute_single_call(call: @Call) → Span<felt252>"
192+
id="execution-execute_single_call"
193+
kind="function"
194+
>
195+
Executes a single call and returns its return value.
196+
</APIItem>
197+
198+
<APIItem
199+
functionSignature="assert_valid_signature(signer: ContractAddress, hash: felt252, signature: Span<felt252>, invalid_signature_error: felt252)"
200+
id="execution-assert_valid_signature"
201+
kind="function"
202+
>
203+
Validates a signature using SRC6 `is_valid_signature` and asserts it's valid. Checks both 'VALID' (`starknet::VALIDATED`) and true (1) for backwards compatibility. Reverts with `invalid_signature_error` if signature is invalid.
204+
</APIItem>
205+
170206
### `math` [toc] [#math]
171207

172208
<APIGithubLinkHeader moduleName="math" link={`https://github.com/OpenZeppelin/cairo-contracts/blob/${UMBRELLA_VERSION}/packages/utils/src/math.cairo`} />

content/contracts-cairo/alpha/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ before proceeding, and run the following command to check that the installation
2424
```bash
2525
$ scarb --version
2626

27-
scarb 2.12.0 (639d0a65e 2025-08-04)
28-
cairo: 2.12.0 (https://crates.io/crates/cairo-lang-compiler/2.12.0)
27+
scarb 2.12.2 (dc0dbfd50 2025-09-15)
28+
cairo: 2.12.2 (https://crates.io/crates/cairo-lang-compiler/2.12.2)
2929
sierra: 1.7.0
3030
```
3131

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
export const OPENZEPPELIN_INTERFACES_VERSION = "2.1.0-alpha.0";
2-
export const OPENZEPPELIN_UTILS_VERSION = "3.0.0-alpha.2";
3-
export const UMBRELLA_VERSION = "3.0.0-alpha.2";
4-
export const CLASS_HASH_SCARB_VERSION = "2.12.0";
2+
export const OPENZEPPELIN_UTILS_VERSION = "2.1.0-alpha.0";
3+
export const UMBRELLA_VERSION = "3.0.0-alpha.3";
4+
export const CLASS_HASH_SCARB_VERSION = "2.12.2";
55

66
export const CLASS_HASHES = {
77
AccountUpgradeableClassHash:
8-
"0x002de258cce5b9e160bf83956b09f982059582469f7e6fad07b438128317d029",
8+
"0x072b2479c3bf45bfc2391b0a04bb0fb4806b93a61a8fede391081535cad65038",
99
ERC20UpgradeableClassHash:
10-
"0x07802658d99373a4002434cbdc8897d1936c6b1beea48af0cc3b5574707f8d92",
10+
"0x0435835a8002b39bf6eb827678b32a75ed3e0bec580ef71a7c29a068d1a96d24",
1111
ERC721UpgradeableClassHash:
12-
"0x04080084ac1ba5a26b4638ac7ca2ff009a9a9b86bf6db5df05e96c90aa143df5",
12+
"0x062212af6bc24e478b5f1c611d2f626270e3ef5825330173afa3e02a0848bcaa",
1313
ERC1155UpgradeableClassHash:
14-
"0x06c8912d4397bb25c73a571bced14cedb959a7caa40b76fb0ce19a57d4a7a9c0",
14+
"0x01a312230aa2774b3271204bfd41e8633d3b2ab48f10f4b56be1ef17806599c4",
1515
EthAccountUpgradeableClassHash:
16-
"0x07f54a43da3f7beb5099c87f5627b7fba5f31c7a704cce57f8fb73287c1ea3be",
16+
"0x071fa21092599f6ffdaed5da83961d895668c668a488465251d88606c26a34b7",
1717
UniversalDeployerClassHash:
18-
"0x037f5901deb2b20bf5b2ddb04f6c770a7c5581edd68aa49f199cf74dfaf03c06",
18+
"0x038a75a9c5a0203e5fa94bb181850a4e6a349fc3fcda6a0ccbcaeb5c2f50c7c3",
1919
VestingWalletClassHash:
20-
"0x062050f8eb6942d067d9d6fc6c2d01aaedbee284f339e58196d5a3bd3d4d6c6f",
20+
"0x03e7d05eb2325c2e10d219f6b70468aef9e915352ac31521ec2950ebf0e3acb4",
2121
};

content/contracts-cairo/alpha/wizard.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ contract and learn about the components offered in OpenZeppelin Contracts for Ca
99
We strongly recommend checking the [Components](./components) section to understand how to extend from our library.
1010
</Callout>
1111

12-
<OZWizard lang="cairo" version="3.0.0-alpha.2" />
12+
import { UMBRELLA_VERSION } from "./utils/constants.js";
13+
14+
<OZWizard lang="cairo" version={UMBRELLA_VERSION} />

0 commit comments

Comments
 (0)