Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f8be222
Duplicate Cairo folder for alpha version support
immrsd Mar 11, 2025
7709e5a
Update Cairo alpha package settings
immrsd Mar 11, 2025
572d3ea
Duplicate Cairo UI components for alpha support
immrsd Mar 11, 2025
23e341d
Introduce VersionSwitch control
immrsd Mar 11, 2025
8ec076e
Update heigh calculation logic in Cairo UI apps
immrsd Mar 11, 2025
be29b93
Update main page to support Cairo alpha version
immrsd Mar 11, 2025
7390cd5
Handle params for switching app, version, and contract tab
ericglau Mar 11, 2025
2cc1ee8
Fix lint
ericglau Mar 11, 2025
063f01a
Move version switcher to language bar
ericglau Mar 12, 2025
5ab8529
Use stable and alpha as version aliases
ericglau Mar 12, 2025
6930a16
Dynamically resize version dropdown
ericglau Mar 12, 2025
6e46f3b
Remove unused param
ericglau Mar 12, 2025
e56aff3
Bake cairo versions for ui
ericglau Mar 12, 2025
df53e1d
Fix script
ericglau Mar 12, 2025
e359437
Only append version if not default
ericglau Mar 12, 2025
6781b8c
Update Cairo alpha snapshots
immrsd Mar 15, 2025
c9f2c2e
Make isDefaultVersion param explicit
immrsd Mar 15, 2025
6840c89
Revert height calculation changes
immrsd Mar 15, 2025
d750a94
Make cairo-alpha package private
immrsd Mar 15, 2025
63c533e
Merge master
immrsd Mar 15, 2025
cf087a2
Add DefaultConfig import
immrsd Mar 19, 2025
e3be449
Update Cairo & Scarb versions
immrsd Mar 19, 2025
88fd218
Update Cairo Alpha test project dependencies
immrsd Mar 19, 2025
927f29f
Update Cairo lib source
immrsd Mar 24, 2025
dd83f73
Merge UI changes
immrsd Mar 24, 2025
264673e
Revert unnecessary changes
immrsd Mar 24, 2025
cb8a638
Revert unnecessary UI changes
immrsd Mar 25, 2025
e53a7e8
Update cairo-alpha readme
immrsd Mar 25, 2025
95687f8
Update cairo-alpha package version
immrsd Mar 25, 2025
e9708b9
Add changelog entry for new Cairo Alpha version
immrsd Mar 25, 2025
a892321
Update Cairo Alpha versions
immrsd Mar 25, 2025
71de942
Update version in snapshots
immrsd Mar 25, 2025
796ca36
Change cairo-alpha package version to 2.0.0-alpha
immrsd Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/core/cairo_alpha/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

- **Breaking changes**:
- Use OpenZeppelin Contracts for Cairo v2.0.0-alpha.0. ([#491](https://github.com/OpenZeppelin/contracts-wizard/pull/491))

## 1.0.0 (2025-02-25)

- **Breaking changes**:
Expand Down
6 changes: 5 additions & 1 deletion packages/core/cairo_alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

Interactively build a contract out of components from OpenZeppelin Contracts for Cairo. Provide parameters and desired features for the kind of contract that you want, and the Wizard will generate all of the code necessary. The resulting code is ready to be compiled and deployed, or it can serve as a starting point and customized further with application specific logic.

This package provides a programmatic API. For a web interface, see https://wizard.openzeppelin.com/cairo
This package provides a programmatic API. For a web interface, see https://wizard.openzeppelin.com/cairo#version=alpha

### Installation

`npm install @openzeppelin/wizard-cairo-alpha`

> NOTE
> The `@openzeppelin/wizard-cairo-alpha` package is currently private and cannot be used as a dependency.
> For a stable version, please use `@openzeppelin/wizard-cairo` instead.

### Contract types

The following contract types are supported:
Expand Down
2 changes: 1 addition & 1 deletion packages/core/cairo_alpha/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@openzeppelin/wizard-cairo-alpha",
"private": true,
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"description": "A boilerplate generator to get started with the latest alpha version of OpenZeppelin Contracts for Cairo",
"license": "AGPL-3.0-only",
"repository": "https://github.com/OpenZeppelin/contracts-wizard",
Expand Down
52 changes: 26 additions & 26 deletions packages/core/cairo_alpha/src/account.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -86,7 +86,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -142,7 +142,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -219,7 +219,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -275,7 +275,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -346,7 +346,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -396,7 +396,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -477,7 +477,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -550,7 +550,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -623,7 +623,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -698,7 +698,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -773,7 +773,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -850,7 +850,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -927,7 +927,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1005,7 +1005,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1062,7 +1062,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1140,7 +1140,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1197,7 +1197,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1269,7 +1269,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1320,7 +1320,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1402,7 +1402,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1476,7 +1476,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1550,7 +1550,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1626,7 +1626,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1702,7 +1702,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down Expand Up @@ -1780,7 +1780,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract(account)]␊
mod MyAccount {␊
Expand Down
Binary file modified packages/core/cairo_alpha/src/account.test.ts.snap
Binary file not shown.
16 changes: 8 additions & 8 deletions packages/core/cairo_alpha/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -44,7 +44,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -89,7 +89,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand All @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand Down Expand Up @@ -154,7 +154,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand Down Expand Up @@ -195,7 +195,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha␊
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0-alpha.0
#[starknet::contract]␊
mod Foo {␊
Expand Down
Binary file modified packages/core/cairo_alpha/src/contract.test.ts.snap
Binary file not shown.
Loading
Loading