Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions packages/core/cairo_alpha/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

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

## 2.0.0 (2025-06-20)
Expand Down
118 changes: 59 additions & 59 deletions packages/core/cairo_alpha/src/account.test.ts.md

Large diffs are not rendered by default.

Binary file modified packages/core/cairo_alpha/src/account.test.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/core/cairo_alpha/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function buildAccount(opts: AccountOptions): Contract {
c.addComponent(components.AccountComponent, [{ lit: 'public_key' }], true);
break;
case 'eth':
c.addUseClause('openzeppelin::account::interface', 'EthPublicKey');
c.addUseClause('openzeppelin::interfaces::accounts', 'EthPublicKey');
c.addConstructorArgument({ name: 'public_key', type: 'EthPublicKey' });
c.addComponent(components.EthAccountComponent, [{ lit: 'public_key' }], true);
break;
Expand Down
18 changes: 9 additions & 9 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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod Foo {␊
Expand Down Expand Up @@ -237,7 +237,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
// Security contact: [email protected]
#[starknet::contract]␊
Expand Down
Binary file modified packages/core/cairo_alpha/src/contract.test.ts.snap
Binary file not shown.
26 changes: 13 additions & 13 deletions packages/core/cairo_alpha/src/custom.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 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod MyContract {␊
Expand All @@ -24,12 +24,12 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod MyContract {␊
use openzeppelin::access::ownable::OwnableComponent;␊
use openzeppelin::upgrades::interface::IUpgradeable;␊
use openzeppelin::interfaces::upgrades::IUpgradeable;␊
use openzeppelin::upgrades::UpgradeableComponent;␊
use starknet::{ClassHash, ContractAddress};␊
Expand Down Expand Up @@ -85,13 +85,13 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod MyContract {␊
use openzeppelin::access::ownable::OwnableComponent;␊
use openzeppelin::interfaces::upgrades::IUpgradeable;␊
use openzeppelin::security::pausable::PausableComponent;␊
use openzeppelin::upgrades::interface::IUpgradeable;␊
use openzeppelin::upgrades::UpgradeableComponent;␊
use starknet::{ClassHash, ContractAddress};␊
Expand Down Expand Up @@ -171,12 +171,12 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod MyContract {␊
use openzeppelin::access::ownable::OwnableComponent;␊
use openzeppelin::upgrades::interface::IUpgradeable;␊
use openzeppelin::interfaces::upgrades::IUpgradeable;␊
use openzeppelin::upgrades::UpgradeableComponent;␊
use starknet::{ClassHash, ContractAddress};␊
Expand Down Expand Up @@ -232,7 +232,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
#[starknet::contract]␊
mod MyContract {␊
use openzeppelin::access::ownable::OwnableComponent;␊
use openzeppelin::upgrades::interface::IUpgradeable;␊
use openzeppelin::interfaces::upgrades::IUpgradeable;␊
use openzeppelin::upgrades::UpgradeableComponent;␊
use starknet::{ClassHash, ContractAddress};␊
Expand Down Expand Up @@ -308,15 +308,15 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.0
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.1
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
#[starknet::contract]␊
mod MyContract {␊
use openzeppelin::access::accesscontrol::{AccessControlComponent, DEFAULT_ADMIN_ROLE};␊
use openzeppelin::interfaces::upgrades::IUpgradeable;␊
use openzeppelin::introspection::src5::SRC5Component;␊
use openzeppelin::upgrades::interface::IUpgradeable;␊
use openzeppelin::upgrades::UpgradeableComponent;␊
use starknet::{ClassHash, ContractAddress};␊
use super::UPGRADER_ROLE;␊
Expand Down Expand Up @@ -385,7 +385,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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