Skip to content

Commit 607dd0c

Browse files
authored
Cairo: Support v3.0.0-alpha.2 (#663)
1 parent b9d58dc commit 607dd0c

22 files changed

+144
-144
lines changed

packages/core/cairo_alpha/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- **Breaking changes**:
6+
- Use OpenZeppelin Contracts for Cairo v3.0.0-alpha.2. ([#663](https://github.com/OpenZeppelin/contracts-wizard/pull/663))
67
- Use OpenZeppelin Contracts for Cairo v3.0.0-alpha.1. ([#638](https://github.com/OpenZeppelin/contracts-wizard/pull/638))
78
- Use OpenZeppelin Contracts for Cairo v3.0.0-alpha.0. ([#623](https://github.com/OpenZeppelin/contracts-wizard/pull/623))
89

packages/core/cairo_alpha/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 3.0.0-alpha.1
12+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
89+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
145+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
222+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
278+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
349+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
399+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
480+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
553+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
626+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
701+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
776+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
853+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
930+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1008+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1065+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1143+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1200+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1272+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1323+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1405+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1479+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1553+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1629+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1705+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
1783+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
17841784
17851785
#[starknet::contract(account)]␊
17861786
mod MyAccount {␊
1 Byte
Binary file not shown.

packages/core/cairo_alpha/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 3.0.0-alpha.1
12+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
27+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
47+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
67+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
92+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
117+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
157+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
198+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
240+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
241241
242242
// Security contact: [email protected]
243243
#[starknet::contract]␊
0 Bytes
Binary file not shown.

packages/core/cairo_alpha/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 3.0.0-alpha.1
12+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
27+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
88+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
174+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
235+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
250+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
311+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
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 3.0.0-alpha.1
388+
// Compatible with OpenZeppelin Contracts for Cairo 3.0.0-alpha.2
389389
390390
#[starknet::contract]␊
391391
mod MyContract {␊
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)