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/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- **Breaking changes**:
- Use OpenZeppelin Contracts for Cairo v0.15.0. ([#378](https://github.com/OpenZeppelin/contracts-wizard/pull/378))
- Use OpenZeppelin Contracts for Cairo v0.16.0. ([#384](https://github.com/OpenZeppelin/contracts-wizard/pull/384))
Comment on lines 6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep the previous change mentioning 0.15.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we should overwrite changes in the changelog. I'd keep it in


## 0.14.0 (2024-06-20)

Expand Down
14 changes: 7 additions & 7 deletions packages/core-cairo/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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod Foo {␊
Expand Down Expand Up @@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod Foo {␊
Expand Down
Binary file modified packages/core-cairo/src/contract.test.ts.snap
Binary file not shown.
16 changes: 8 additions & 8 deletions packages/core-cairo/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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand All @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

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

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

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
Expand Down Expand Up @@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod MyContract {␊
Expand Down
Binary file modified packages/core-cairo/src/custom.test.ts.snap
Binary file not shown.
20 changes: 10 additions & 10 deletions packages/core-cairo/src/erc1155.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod MyToken {␊
Expand Down Expand Up @@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
Expand Down Expand Up @@ -272,7 +272,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

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

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊
Expand Down Expand Up @@ -862,7 +862,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
Expand Down Expand Up @@ -1063,7 +1063,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
Expand Down
Binary file modified packages/core-cairo/src/erc1155.test.ts.snap
Binary file not shown.
32 changes: 16 additions & 16 deletions packages/core-cairo/src/erc20.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 ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
#[starknet::contract]␊
mod MyToken {␊
Expand Down Expand Up @@ -48,7 +48,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
Expand Down Expand Up @@ -434,7 +434,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

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

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
Expand Down Expand Up @@ -861,7 +861,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1

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

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

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

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

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

`// SPDX-License-Identifier: MIT␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
Expand Down
Binary file modified packages/core-cairo/src/erc20.test.ts.snap
Binary file not shown.
Loading