Skip to content

Commit 219febe

Browse files
authored
Support Cairo v1.0.0 (#458)
1 parent 72a1f47 commit 219febe

21 files changed

+147
-141
lines changed

packages/core/cairo/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.0.0 (2025-02-25)
4+
5+
- **Breaking changes**:
6+
- Use OpenZeppelin Contracts for Cairo v1.0.0. ([#458](https://github.com/OpenZeppelin/contracts-wizard/pull/458))
7+
38
## 0.21.1 (2025-01-23)
49

510
- Update to use TypeScript v5. ([#231](https://github.com/OpenZeppelin/contracts-wizard/pull/231))

packages/core/cairo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openzeppelin/wizard-cairo",
3-
"version": "0.21.1",
3+
"version": "1.0.0",
44
"description": "A boilerplate generator to get started with OpenZeppelin Contracts for Cairo",
55
"license": "AGPL-3.0-only",
66
"repository": "https://github.com/OpenZeppelin/contracts-wizard",

packages/core/cairo/src/account.test.ts.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`// SPDX-License-Identifier: MIT␊
12-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
1313
1414
#[starknet::contract(account)]␊
1515
mod MyAccount {␊
@@ -86,7 +86,7 @@ Generated by [AVA](https://avajs.dev).
8686
> Snapshot 1
8787
8888
`// SPDX-License-Identifier: MIT␊
89-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
89+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
9090
9191
#[starknet::contract(account)]␊
9292
mod MyAccount {␊
@@ -142,7 +142,7 @@ Generated by [AVA](https://avajs.dev).
142142
> Snapshot 1
143143
144144
`// SPDX-License-Identifier: MIT␊
145-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
145+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
146146
147147
#[starknet::contract(account)]␊
148148
mod MyAccount {␊
@@ -219,7 +219,7 @@ Generated by [AVA](https://avajs.dev).
219219
> Snapshot 1
220220
221221
`// SPDX-License-Identifier: MIT␊
222-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
222+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
223223
224224
#[starknet::contract(account)]␊
225225
mod MyAccount {␊
@@ -275,7 +275,7 @@ Generated by [AVA](https://avajs.dev).
275275
> Snapshot 1
276276
277277
`// SPDX-License-Identifier: MIT␊
278-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
278+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
279279
280280
#[starknet::contract(account)]␊
281281
mod MyAccount {␊
@@ -346,7 +346,7 @@ Generated by [AVA](https://avajs.dev).
346346
> Snapshot 1
347347
348348
`// SPDX-License-Identifier: MIT␊
349-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
349+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
350350
351351
#[starknet::contract(account)]␊
352352
mod MyAccount {␊
@@ -396,7 +396,7 @@ Generated by [AVA](https://avajs.dev).
396396
> Snapshot 1
397397
398398
`// SPDX-License-Identifier: MIT␊
399-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
399+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
400400
401401
#[starknet::contract(account)]␊
402402
mod MyAccount {␊
@@ -477,7 +477,7 @@ Generated by [AVA](https://avajs.dev).
477477
> Snapshot 1
478478
479479
`// SPDX-License-Identifier: MIT␊
480-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
480+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
481481
482482
#[starknet::contract(account)]␊
483483
mod MyAccount {␊
@@ -550,7 +550,7 @@ Generated by [AVA](https://avajs.dev).
550550
> Snapshot 1
551551
552552
`// SPDX-License-Identifier: MIT␊
553-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
553+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
554554
555555
#[starknet::contract(account)]␊
556556
mod MyAccount {␊
@@ -623,7 +623,7 @@ Generated by [AVA](https://avajs.dev).
623623
> Snapshot 1
624624
625625
`// SPDX-License-Identifier: MIT␊
626-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
626+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
627627
628628
#[starknet::contract(account)]␊
629629
mod MyAccount {␊
@@ -698,7 +698,7 @@ Generated by [AVA](https://avajs.dev).
698698
> Snapshot 1
699699
700700
`// SPDX-License-Identifier: MIT␊
701-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
701+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
702702
703703
#[starknet::contract(account)]␊
704704
mod MyAccount {␊
@@ -773,7 +773,7 @@ Generated by [AVA](https://avajs.dev).
773773
> Snapshot 1
774774
775775
`// SPDX-License-Identifier: MIT␊
776-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
776+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
777777
778778
#[starknet::contract(account)]␊
779779
mod MyAccount {␊
@@ -850,7 +850,7 @@ Generated by [AVA](https://avajs.dev).
850850
> Snapshot 1
851851
852852
`// SPDX-License-Identifier: MIT␊
853-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
853+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
854854
855855
#[starknet::contract(account)]␊
856856
mod MyAccount {␊
@@ -927,7 +927,7 @@ Generated by [AVA](https://avajs.dev).
927927
> Snapshot 1
928928
929929
`// SPDX-License-Identifier: MIT␊
930-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
930+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
931931
932932
#[starknet::contract(account)]␊
933933
mod MyAccount {␊
@@ -1005,7 +1005,7 @@ Generated by [AVA](https://avajs.dev).
10051005
> Snapshot 1
10061006
10071007
`// SPDX-License-Identifier: MIT␊
1008-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1008+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
10091009
10101010
#[starknet::contract(account)]␊
10111011
mod MyAccount {␊
@@ -1062,7 +1062,7 @@ Generated by [AVA](https://avajs.dev).
10621062
> Snapshot 1
10631063
10641064
`// SPDX-License-Identifier: MIT␊
1065-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1065+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
10661066
10671067
#[starknet::contract(account)]␊
10681068
mod MyAccount {␊
@@ -1140,7 +1140,7 @@ Generated by [AVA](https://avajs.dev).
11401140
> Snapshot 1
11411141
11421142
`// SPDX-License-Identifier: MIT␊
1143-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1143+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
11441144
11451145
#[starknet::contract(account)]␊
11461146
mod MyAccount {␊
@@ -1197,7 +1197,7 @@ Generated by [AVA](https://avajs.dev).
11971197
> Snapshot 1
11981198
11991199
`// SPDX-License-Identifier: MIT␊
1200-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1200+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
12011201
12021202
#[starknet::contract(account)]␊
12031203
mod MyAccount {␊
@@ -1269,7 +1269,7 @@ Generated by [AVA](https://avajs.dev).
12691269
> Snapshot 1
12701270
12711271
`// SPDX-License-Identifier: MIT␊
1272-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1272+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
12731273
12741274
#[starknet::contract(account)]␊
12751275
mod MyAccount {␊
@@ -1320,7 +1320,7 @@ Generated by [AVA](https://avajs.dev).
13201320
> Snapshot 1
13211321
13221322
`// SPDX-License-Identifier: MIT␊
1323-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1323+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
13241324
13251325
#[starknet::contract(account)]␊
13261326
mod MyAccount {␊
@@ -1402,7 +1402,7 @@ Generated by [AVA](https://avajs.dev).
14021402
> Snapshot 1
14031403
14041404
`// SPDX-License-Identifier: MIT␊
1405-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1405+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
14061406
14071407
#[starknet::contract(account)]␊
14081408
mod MyAccount {␊
@@ -1476,7 +1476,7 @@ Generated by [AVA](https://avajs.dev).
14761476
> Snapshot 1
14771477
14781478
`// SPDX-License-Identifier: MIT␊
1479-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1479+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
14801480
14811481
#[starknet::contract(account)]␊
14821482
mod MyAccount {␊
@@ -1550,7 +1550,7 @@ Generated by [AVA](https://avajs.dev).
15501550
> Snapshot 1
15511551
15521552
`// SPDX-License-Identifier: MIT␊
1553-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1553+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
15541554
15551555
#[starknet::contract(account)]␊
15561556
mod MyAccount {␊
@@ -1626,7 +1626,7 @@ Generated by [AVA](https://avajs.dev).
16261626
> Snapshot 1
16271627
16281628
`// SPDX-License-Identifier: MIT␊
1629-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1629+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
16301630
16311631
#[starknet::contract(account)]␊
16321632
mod MyAccount {␊
@@ -1702,7 +1702,7 @@ Generated by [AVA](https://avajs.dev).
17021702
> Snapshot 1
17031703
17041704
`// SPDX-License-Identifier: MIT␊
1705-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1705+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
17061706
17071707
#[starknet::contract(account)]␊
17081708
mod MyAccount {␊
@@ -1780,7 +1780,7 @@ Generated by [AVA](https://avajs.dev).
17801780
> Snapshot 1
17811781
17821782
`// SPDX-License-Identifier: MIT␊
1783-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
1783+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
17841784
17851785
#[starknet::contract(account)]␊
17861786
mod MyAccount {␊
-6 Bytes
Binary file not shown.

packages/core/cairo/src/contract.test.ts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`// SPDX-License-Identifier: MIT␊
12-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
1313
1414
#[starknet::contract]␊
1515
mod Foo {␊
@@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
2424
> Snapshot 1
2525
2626
`// SPDX-License-Identifier: MIT␊
27-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
27+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
2828
2929
#[starknet::contract]␊
3030
mod Foo {␊
@@ -44,7 +44,7 @@ Generated by [AVA](https://avajs.dev).
4444
> Snapshot 1
4545
4646
`// SPDX-License-Identifier: MIT␊
47-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
47+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
4848
4949
#[starknet::contract]␊
5050
mod Foo {␊
@@ -64,7 +64,7 @@ Generated by [AVA](https://avajs.dev).
6464
> Snapshot 1
6565
6666
`// SPDX-License-Identifier: MIT␊
67-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
67+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
6868
6969
#[starknet::contract]␊
7070
mod Foo {␊
@@ -89,7 +89,7 @@ Generated by [AVA](https://avajs.dev).
8989
> Snapshot 1
9090
9191
`// SPDX-License-Identifier: MIT␊
92-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
92+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
9393
9494
#[starknet::contract]␊
9595
mod Foo {␊
@@ -114,7 +114,7 @@ Generated by [AVA](https://avajs.dev).
114114
> Snapshot 1
115115
116116
`// SPDX-License-Identifier: MIT␊
117-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
117+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
118118
119119
#[starknet::contract]␊
120120
mod Foo {␊
@@ -154,7 +154,7 @@ Generated by [AVA](https://avajs.dev).
154154
> Snapshot 1
155155
156156
`// SPDX-License-Identifier: MIT␊
157-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
157+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
158158
159159
#[starknet::contract]␊
160160
mod Foo {␊
@@ -195,7 +195,7 @@ Generated by [AVA](https://avajs.dev).
195195
> Snapshot 1
196196
197197
`// SPDX-License-Identifier: MIT␊
198-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
198+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
199199
200200
#[starknet::contract]␊
201201
mod Foo {␊
0 Bytes
Binary file not shown.

packages/core/cairo/src/custom.test.ts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generated by [AVA](https://avajs.dev).
99
> Snapshot 1
1010
1111
`// SPDX-License-Identifier: MIT␊
12-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
1313
1414
#[starknet::contract]␊
1515
mod MyContract {␊
@@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
2424
> Snapshot 1
2525
2626
`// SPDX-License-Identifier: MIT␊
27-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
27+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
2828
2929
#[starknet::contract]␊
3030
mod MyContract {␊
@@ -85,7 +85,7 @@ Generated by [AVA](https://avajs.dev).
8585
> Snapshot 1
8686
8787
`// SPDX-License-Identifier: MIT␊
88-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
88+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
8989
9090
#[starknet::contract]␊
9191
mod MyContract {␊
@@ -171,7 +171,7 @@ Generated by [AVA](https://avajs.dev).
171171
> Snapshot 1
172172
173173
`// SPDX-License-Identifier: MIT␊
174-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
174+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
175175
176176
#[starknet::contract]␊
177177
mod MyContract {␊
@@ -232,7 +232,7 @@ Generated by [AVA](https://avajs.dev).
232232
> Snapshot 1
233233
234234
`// SPDX-License-Identifier: MIT␊
235-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
235+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
236236
237237
#[starknet::contract]␊
238238
mod MyContract {␊
@@ -247,7 +247,7 @@ Generated by [AVA](https://avajs.dev).
247247
> Snapshot 1
248248
249249
`// SPDX-License-Identifier: MIT␊
250-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
250+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
251251
252252
#[starknet::contract]␊
253253
mod MyContract {␊
@@ -308,7 +308,7 @@ Generated by [AVA](https://avajs.dev).
308308
> Snapshot 1
309309
310310
`// SPDX-License-Identifier: MIT␊
311-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
311+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
312312
313313
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
314314
@@ -385,7 +385,7 @@ Generated by [AVA](https://avajs.dev).
385385
> Snapshot 1
386386
387387
`// SPDX-License-Identifier: MIT␊
388-
// Compatible with OpenZeppelin Contracts for Cairo ^0.20.0␊
388+
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
389389
390390
#[starknet::contract]␊
391391
mod MyContract {␊
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)