From 97e06c68f49002c14cbad1d91acc6f21a01d94d0 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Mon, 26 Feb 2024 13:17:23 -0500 Subject: [PATCH] Remove Cairo lang version (#337) --- packages/core-cairo/CHANGELOG.md | 4 ++++ packages/core-cairo/package.json | 2 +- packages/core-cairo/src/contract.test.ts.md | 7 ------- packages/core-cairo/src/contract.test.ts.snap | Bin 733 -> 717 bytes packages/core-cairo/src/custom.test.ts.md | 7 ------- packages/core-cairo/src/custom.test.ts.snap | Bin 1197 -> 1183 bytes packages/core-cairo/src/erc20.test.ts.md | 11 ----------- packages/core-cairo/src/erc20.test.ts.snap | Bin 2285 -> 2270 bytes packages/core-cairo/src/erc721.test.ts.md | 6 ------ packages/core-cairo/src/erc721.test.ts.snap | Bin 2081 -> 2070 bytes packages/core-cairo/src/print.ts | 3 +-- packages/core-cairo/src/utils/version.ts | 5 ----- 12 files changed, 6 insertions(+), 39 deletions(-) diff --git a/packages/core-cairo/CHANGELOG.md b/packages/core-cairo/CHANGELOG.md index b90e5d54..2f891031 100644 --- a/packages/core-cairo/CHANGELOG.md +++ b/packages/core-cairo/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.9.2 (2024-02-26) + +- Remove code comment for Cairo lang version. ([#337](https://github.com/OpenZeppelin/contracts-wizard/pull/337)) + ## 0.9.1 (2024-02-22) - Add code comments for compatible OpenZeppelin Contracts for Cairo and Cairo lang versions. ([#331](https://github.com/OpenZeppelin/contracts-wizard/pull/331)) diff --git a/packages/core-cairo/package.json b/packages/core-cairo/package.json index f58e4629..b2ce86d4 100644 --- a/packages/core-cairo/package.json +++ b/packages/core-cairo/package.json @@ -1,6 +1,6 @@ { "name": "@openzeppelin/wizard-cairo", - "version": "0.9.1", + "version": "0.9.2", "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/contract.test.ts.md b/packages/core-cairo/src/contract.test.ts.md index 92ff2aba..ec16ea3c 100644 --- a/packages/core-cairo/src/contract.test.ts.md +++ b/packages/core-cairo/src/contract.test.ts.md @@ -10,7 +10,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -26,7 +25,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -47,7 +45,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -68,7 +65,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -94,7 +90,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -120,7 +115,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ @@ -159,7 +153,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod Foo {␊ diff --git a/packages/core-cairo/src/contract.test.ts.snap b/packages/core-cairo/src/contract.test.ts.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je^KZBbqeMH6L&-9?-Yj=|?)^zmaaP zt!b;#yWKmeLlwl`;^9h@(pfFeOJD%?ivTn2vFfk3wdOT$Wdq9reR7 z?a(JzI+~1+F#7R)omfms91M|Ykv(S%UlJp1p;7vv7=`(q7tID%m5;H-Chb8gjjuUd z4i)g~AQOf*)?ueh7T)~JW|ZoU1Q8QFPw1JfC!sZkkmS5%NA0aqxVicV+4v&C0pV@|MqZZP85p*2;|SjEo)iVOjU35&BDGF9mM_ z3?-{@E-YEuOV5Qh{uCDZ-x^nQE^KS_<$n3OFs{WFoC}-kvs#>KM}JmJovfOw%t#&E z8dDlJy~nK7@u;aj-4yMT%*5#?ZXHe3p5}D6N4+#>jiIKuCvkRbhPDktkC?xMS z5$h-XSI0Vg#DD%RmQ6e!3@Z)y?Cq@BiVix}4T^Z_M=&@dj}!E32xjA64T-NaNkoRF zg$;9Z=(n`M;rrm%VX zF#mDj77%vL1gBIV4jx8%iOw5jfz`p|4m|P?xl7R>QKs4-e2uTB-i7vERuB` z<(5Xuq$jLX1+D2()g;WEQh2DK{Hc}o(4r>et&uJCR)x+&ZrV!6 zP3O;}02+LfwiMj??O=04T`d0=HY H!ixX^wl-oQ diff --git a/packages/core-cairo/src/erc721.test.ts.md b/packages/core-cairo/src/erc721.test.ts.md index 222f4962..7c1f4e35 100644 --- a/packages/core-cairo/src/erc721.test.ts.md +++ b/packages/core-cairo/src/erc721.test.ts.md @@ -10,7 +10,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -63,7 +62,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -128,7 +126,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -311,7 +308,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[starknet::contract]␊ mod MyToken {␊ @@ -405,7 +401,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊ ␊ @@ -506,7 +501,6 @@ Generated by [AVA](https://avajs.dev). `// SPDX-License-Identifier: MIT␊ // Compatible with OpenZeppelin Contracts for Cairo ^0.9.0␊ - // Cairo lang 2.5.3␊ ␊ #[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 04865bada2a853bf51e275039956f3999d718862..d25dbde5af17b09a159ba66b271a9f1d71e794d7 100644 GIT binary patch literal 2070 zcmV+x2|%R@y+C)dH`tr(4fYnh8Yz)9DN*uITsN`hi#C>czH`n; z^6(ro%sa0aAopeb`=5~bB!I97V&C=S5Jd4YBJr>9`h7sa)60K++pD*1?mlpKkB?E(~LMyVHju@jV}6+uH4P8}$7q8bpBjy#QLTd~$5hp@E?e2lE0@2-8jcDK>E^*km3zYHO- ziJ^rk=o=1d+l0NfZHV1(*1xjt?fp&qKeGdc)VzBoQa)9I;t0CLNAzoq-3{A5*x%ex zBvVmWe8178o*mm(PC?6x3BuqA+E!*l%YrBLxoEh}zO3FeV`&N%Bxa7pVT}Yz3Uli@ z==n`J=)t~oa(DGb`p_Rl0av*T31B_gVUNDc8!RYNTiq93b3g!r5AIE*W)loxuonie zN9&SJr&e0+)6}qI_;426Sr>B4wJy(woDs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/core-cairo/src/print.ts +++ b/packages/core-cairo/src/print.ts @@ -4,7 +4,7 @@ import type { Contract, Component, Argument, Value, Impl, ContractFunction, } fr import { formatLines, spaceBetween, Lines } from './utils/format-lines'; import { getSelfArg } from './common-options'; -import { compatibleCairoLangSemver, compatibleContractsSemver } from './utils/version'; +import { compatibleContractsSemver } from './utils/version'; export function printContract(contract: Contract): string { return formatLines( @@ -12,7 +12,6 @@ export function printContract(contract: Contract): string { [ `// SPDX-License-Identifier: ${contract.license}`, `// Compatible with OpenZeppelin Contracts for Cairo ${compatibleContractsSemver}`, - `// Cairo lang ${compatibleCairoLangSemver}` ], printSuperVariables(contract), [ diff --git a/packages/core-cairo/src/utils/version.ts b/packages/core-cairo/src/utils/version.ts index f9974441..6ec406d8 100644 --- a/packages/core-cairo/src/utils/version.ts +++ b/packages/core-cairo/src/utils/version.ts @@ -8,8 +8,3 @@ export const contractsVersionTag = `v${contractsVersion}`; * Semantic version string representing of the minimum compatible version of Contracts to display in output. */ export const compatibleContractsSemver = '^0.9.0'; - -/** - * Compatible Cairo lang version to display in output. - */ -export const compatibleCairoLangSemver = '2.5.3'; \ No newline at end of file