diff --git a/packages/core-cairo/CHANGELOG.md b/packages/core-cairo/CHANGELOG.md index a2417913..55228c65 100644 --- a/packages/core-cairo/CHANGELOG.md +++ b/packages/core-cairo/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.20.0 (2024-12-10) + +- **Breaking changes**: + - Use OpenZeppelin Contracts for Cairo v0.20.0. ([#419](https://github.com/OpenZeppelin/contracts-wizard/pull/419)) + ## 0.19.0 (2024-11-27) - Add ERC2981 (RoyaltyInfo) for ERC721 and ERC1155 ([#413](https://github.com/OpenZeppelin/contracts-wizard/pull/413)) diff --git a/packages/core-cairo/package.json b/packages/core-cairo/package.json index 0f8d88a9..ad0e12cb 100644 --- a/packages/core-cairo/package.json +++ b/packages/core-cairo/package.json @@ -1,6 +1,6 @@ { "name": "@openzeppelin/wizard-cairo", - "version": "0.19.0", + "version": "0.20.0", "description": "A boilerplate generator to get started with OpenZeppelin Contracts for Cairo", "license": "MIT", "repository": "github:OpenZeppelin/contracts-wizard", diff --git a/packages/core-cairo/src/account.test.ts.md b/packages/core-cairo/src/account.test.ts.md index 291f802a..1b152814 100644 --- a/packages/core-cairo/src/account.test.ts.md +++ b/packages/core-cairo/src/account.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -70,7 +70,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -175,7 +175,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -219,7 +219,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -284,7 +284,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -332,7 +332,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -399,7 +399,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -466,7 +466,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -535,7 +535,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -604,7 +604,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -675,7 +675,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -746,7 +746,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -808,7 +808,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -853,7 +853,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -915,7 +915,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -960,7 +960,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1026,7 +1026,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1075,7 +1075,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1143,7 +1143,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1211,7 +1211,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1281,7 +1281,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1351,7 +1351,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ @@ -1423,7 +1423,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract(account)]␊ mod MyAccount {␊ diff --git a/packages/core-cairo/src/account.test.ts.snap b/packages/core-cairo/src/account.test.ts.snap index 6f8ed6ad..0c6195e8 100644 Binary files a/packages/core-cairo/src/account.test.ts.snap and b/packages/core-cairo/src/account.test.ts.snap differ diff --git a/packages/core-cairo/src/contract.test.ts.md b/packages/core-cairo/src/contract.test.ts.md index 209c617e..b6d52b23 100644 --- a/packages/core-cairo/src/contract.test.ts.md +++ b/packages/core-cairo/src/contract.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -44,7 +44,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -89,7 +89,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod Foo {␊ diff --git a/packages/core-cairo/src/contract.test.ts.snap b/packages/core-cairo/src/contract.test.ts.snap index 6614142a..86a5513b 100644 Binary files a/packages/core-cairo/src/contract.test.ts.snap and b/packages/core-cairo/src/contract.test.ts.snap differ diff --git a/packages/core-cairo/src/custom.test.ts.md b/packages/core-cairo/src/custom.test.ts.md index ef3f7ffb..e7882a3f 100644 --- a/packages/core-cairo/src/custom.test.ts.md +++ b/packages/core-cairo/src/custom.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -161,7 +161,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -217,7 +217,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -232,7 +232,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ @@ -288,7 +288,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ ␊ @@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyContract {␊ diff --git a/packages/core-cairo/src/custom.test.ts.snap b/packages/core-cairo/src/custom.test.ts.snap index 08994387..10ce3638 100644 Binary files a/packages/core-cairo/src/custom.test.ts.snap and b/packages/core-cairo/src/custom.test.ts.snap differ diff --git a/packages/core-cairo/src/erc1155.test.ts.md b/packages/core-cairo/src/erc1155.test.ts.md index 1d01fbe5..52cf75df 100644 --- a/packages/core-cairo/src/erc1155.test.ts.md +++ b/packages/core-cairo/src/erc1155.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -168,7 +168,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -272,7 +272,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -345,7 +345,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -467,7 +467,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -588,7 +588,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -711,7 +711,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊ @@ -853,7 +853,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -941,7 +941,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1048,7 +1048,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -1170,7 +1170,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1280,7 +1280,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -1405,7 +1405,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ @@ -1615,7 +1615,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ diff --git a/packages/core-cairo/src/erc1155.test.ts.snap b/packages/core-cairo/src/erc1155.test.ts.snap index 7b320e02..af295dcb 100644 Binary files a/packages/core-cairo/src/erc1155.test.ts.snap and b/packages/core-cairo/src/erc1155.test.ts.snap differ diff --git a/packages/core-cairo/src/erc20.test.ts.md b/packages/core-cairo/src/erc20.test.ts.md index d13364ac..9d6120c4 100644 --- a/packages/core-cairo/src/erc20.test.ts.md +++ b/packages/core-cairo/src/erc20.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -48,7 +48,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -115,7 +115,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -192,7 +192,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -295,7 +295,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -418,7 +418,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -527,7 +527,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -596,7 +596,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -663,7 +663,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -740,7 +740,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -837,7 +837,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -943,7 +943,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1049,7 +1049,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1127,7 +1127,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1265,7 +1265,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1420,7 +1420,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ diff --git a/packages/core-cairo/src/erc20.test.ts.snap b/packages/core-cairo/src/erc20.test.ts.snap index 0dcc8297..caabfc5a 100644 Binary files a/packages/core-cairo/src/erc20.test.ts.snap and b/packages/core-cairo/src/erc20.test.ts.snap differ diff --git a/packages/core-cairo/src/erc721.test.ts.md b/packages/core-cairo/src/erc721.test.ts.md index f6bbdf5e..b7bc574b 100644 --- a/packages/core-cairo/src/erc721.test.ts.md +++ b/packages/core-cairo/src/erc721.test.ts.md @@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -54,7 +54,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -127,7 +127,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -200,7 +200,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -284,7 +284,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -393,7 +393,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -491,7 +491,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -585,7 +585,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -705,7 +705,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ @@ -819,7 +819,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -892,7 +892,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -984,7 +984,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ ␊ @@ -1088,7 +1088,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1183,7 +1183,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊ ␊ @@ -1290,7 +1290,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1470,7 +1470,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1583,7 +1583,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1696,7 +1696,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -1782,7 +1782,7 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 `// SPDX-License-Identifier: MIT␊ - // Compatible with OpenZeppelin Contracts for Cairo ^0.19.0␊ + // Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊ ␊ #[starknet::contract]␊ mod MyToken {␊ diff --git a/packages/core-cairo/src/erc721.test.ts.snap b/packages/core-cairo/src/erc721.test.ts.snap index af7502f5..20507cf4 100644 Binary files a/packages/core-cairo/src/erc721.test.ts.snap and b/packages/core-cairo/src/erc721.test.ts.snap differ diff --git a/packages/core-cairo/src/utils/version.ts b/packages/core-cairo/src/utils/version.ts index 0bd4bddd..ccba00ac 100644 --- a/packages/core-cairo/src/utils/version.ts +++ b/packages/core-cairo/src/utils/version.ts @@ -1,17 +1,17 @@ /** * The actual latest version to use in links. */ -export const contractsVersion = '0.19.0'; +export const contractsVersion = '0.20.0'; export const contractsVersionTag = `v${contractsVersion}`; /** * Cairo compiler versions. */ export const edition = '2024_07'; -export const cairoVersion = '2.8.4'; -export const scarbVersion = '2.8.4'; +export const cairoVersion = '2.9.1'; +export const scarbVersion = '2.9.1'; /** * Semantic version string representing of the minimum compatible version of Contracts to display in output. */ -export const compatibleContractsSemver = '^0.19.0'; +export const compatibleContractsSemver = '^0.20.0'; diff --git a/packages/core-cairo/test_project/Scarb.lock b/packages/core-cairo/test_project/Scarb.lock index 927d89d0..3fdf955d 100644 --- a/packages/core-cairo/test_project/Scarb.lock +++ b/packages/core-cairo/test_project/Scarb.lock @@ -3,9 +3,9 @@ version = 1 [[package]] name = "openzeppelin" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:33174cc8f66cd2c1a527fd7f13a800dcb107d59f5c77e998e0c896a1da9cf1df" +checksum = "sha256:05fd9365be85a4a3e878135d5c52229f760b3861ce4ed314cb1e75b178b553da" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -22,19 +22,18 @@ dependencies = [ [[package]] name = "openzeppelin_access" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:0f5055ef443327bb613a56a812ccf31157abfd7d36a18739556f78b67f5b1116" +checksum = "sha256:7734901a0ca7a7065e69416fea615dd1dc586c8dc9e76c032f25ee62e8b2a06c" dependencies = [ "openzeppelin_introspection", - "openzeppelin_utils", ] [[package]] name = "openzeppelin_account" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:0c92c856e44080e3280788d1c46f89ac707c64fa555eb02c343e492709a1ee50" +checksum = "sha256:1aa3a71e2f40f66f98d96aa9bf9f361f53db0fd20fa83ef7df04426a3c3a926a" dependencies = [ "openzeppelin_introspection", "openzeppelin_utils", @@ -42,9 +41,9 @@ dependencies = [ [[package]] name = "openzeppelin_finance" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:3d38c8aff02478431ddbb0538be5281a89eb159016105195bf6409bf6c3c4fc4" +checksum = "sha256:f0c507fbff955e4180ea3fa17949c0ff85518c40101f4948948d9d9a74143d6c" dependencies = [ "openzeppelin_access", "openzeppelin_token", @@ -52,33 +51,34 @@ dependencies = [ [[package]] name = "openzeppelin_governance" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:fc6afb45e3cdcb5e843bbc80c6e12bb2536a34f557b74787c256872b86f2a81a" +checksum = "sha256:c0fb60fad716413d537fabd5fcbb2c499ca6beb95af5f0d1699955ecec4c6f63" dependencies = [ "openzeppelin_access", "openzeppelin_account", "openzeppelin_introspection", "openzeppelin_token", + "openzeppelin_utils", ] [[package]] name = "openzeppelin_introspection" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:a1dda07a91c447b83ccfcc4895897ec134917f0ff6d2ca876b93ea27466d7693" +checksum = "sha256:13e04a2190684e6804229a77a6c56de7d033db8b9ef519e5e8dee400a70d8a3d" [[package]] name = "openzeppelin_merkle_tree" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:e7aaa00b9ea0f73938d3be6351aaa88efd21304bf6d5fd1b66c61e048a7a2375" +checksum = "sha256:039608900e92f3dcf479bf53a49a1fd76452acd97eb86e390d1eb92cacdaf3af" [[package]] name = "openzeppelin_presets" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:57d5c48724025072419c63a929903d71b949287338dc86d561e52b52d869c06f" +checksum = "sha256:5c07a8de32e5d9abe33988c7927eaa8b5f83bc29dc77302d9c8c44c898611042" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -91,15 +91,15 @@ dependencies = [ [[package]] name = "openzeppelin_security" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:0f1462d6de898cd28199cde0110304b4248fb19c7e788d4121d26c93b290e991" +checksum = "sha256:27155597019ecf971c48d7bfb07fa58cdc146d5297745570071732abca17f19f" [[package]] name = "openzeppelin_token" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:9cba10f666ca6dd83b581367438d04b244bd5bbf0cfad6a28d193d373c0498b8" +checksum = "sha256:4452f449dc6c1ea97cf69d1d9182749abd40e85bd826cd79652c06a627eafd91" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -109,15 +109,15 @@ dependencies = [ [[package]] name = "openzeppelin_upgrades" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:3f2badf764a2219b0ea5b567b039daeb4c1707331f98e4f7b985ca2b562b4e10" +checksum = "sha256:15fdd63f6b50a0fda7b3f8f434120aaf7637bcdfe6fd8d275ad57343d5ede5e1" [[package]] name = "openzeppelin_utils" -version = "0.19.0" +version = "0.20.0" source = "registry+https://scarbs.xyz/" -checksum = "sha256:0e0e6f6b20b3c4075b92941a2c124430a59f1c207f8fbdfd56ce9239e6d666a8" +checksum = "sha256:44f32d242af1e43982decc49c563e613a9b67ade552f5c3d5cde504e92f74607" [[package]] name = "test_project" diff --git a/packages/core-cairo/test_project/Scarb.toml b/packages/core-cairo/test_project/Scarb.toml index 34690aa0..276e07ab 100644 --- a/packages/core-cairo/test_project/Scarb.toml +++ b/packages/core-cairo/test_project/Scarb.toml @@ -2,12 +2,12 @@ name = "test_project" version = "0.1.0" edition = "2024_07" -cairo-version = "2.8.4" -scarb-version = "2.8.4" +cairo-version = "2.9.1" +scarb-version = "2.9.1" [dependencies] -starknet = "2.8.4" -openzeppelin = "0.19.0" +starknet = "2.9.1" +openzeppelin = "0.20.0" [lib]