Skip to content

Commit 74770ca

Browse files
authored
Merge Cairo alpha to stable v2.0.0 (#574)
1 parent d3bc0e1 commit 74770ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+374
-331
lines changed

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
**/LICENSE
1313
**/NOTICE
1414
build/
15-
public/
15+
public/
16+
remappings.txt
17+
*.cairo
18+
*.sh

packages/core/cairo/CHANGELOG.md

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

3+
## 2.0.0 (2025-06-18)
4+
5+
- Add AccessControlWithDelay. ([#506](https://github.com/OpenZeppelin/contracts-wizard/pull/506))
6+
7+
- **Breaking changes**:
8+
- Use OpenZeppelin Contracts for Cairo v2.0.0. ([#574](https://github.com/OpenZeppelin/contracts-wizard/pull/574))
9+
- Use OpenZeppelin Contracts for Cairo v2.0.0-alpha.1. ([#533](https://github.com/OpenZeppelin/contracts-wizard/pull/533))
10+
- Use OpenZeppelin Contracts for Cairo v2.0.0-alpha.0. ([#491](https://github.com/OpenZeppelin/contracts-wizard/pull/491))
11+
312
## 1.1.0 (2025-04-01)
413

514
- Add Multisig tab. ([#433](https://github.com/OpenZeppelin/contracts-wizard/pull/433))

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": "1.1.0",
3+
"version": "2.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 ^1.0.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
89+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
145+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
222+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
278+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
349+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
399+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
480+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
553+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
626+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
701+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
776+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
853+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
930+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1008+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1065+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1143+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1200+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1272+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1323+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1405+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1479+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1553+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1629+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1705+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
1783+
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0␊
17841784
17851785
#[starknet::contract(account)]␊
17861786
mod MyAccount {␊
0 Bytes
Binary file not shown.

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

Lines changed: 9 additions & 9 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 ^1.0.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
27+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
47+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
67+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
92+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
117+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
157+
// Compatible with OpenZeppelin Contracts for Cairo ^2.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 ^1.0.0␊
198+
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0␊
199199
200200
#[starknet::contract]␊
201201
mod Foo {␊
@@ -237,7 +237,7 @@ Generated by [AVA](https://avajs.dev).
237237
> Snapshot 1
238238
239239
`// SPDX-License-Identifier: MIT␊
240-
// Compatible with OpenZeppelin Contracts for Cairo ^1.0.0␊
240+
// Compatible with OpenZeppelin Contracts for Cairo ^2.0.0␊
241241
242242
// Security contact: [email protected]
243243
#[starknet::contract]␊
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)