Skip to content

Commit 0532980

Browse files
Bump cairo lib to v0.16.0 (#384)
1 parent c53d513 commit 0532980

14 files changed

+96
-84
lines changed

packages/core-cairo/CHANGELOG.md

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

55
- **Breaking changes**:
66
- Use OpenZeppelin Contracts for Cairo v0.15.0. ([#378](https://github.com/OpenZeppelin/contracts-wizard/pull/378))
7+
- Use OpenZeppelin Contracts for Cairo v0.16.0. ([#384](https://github.com/OpenZeppelin/contracts-wizard/pull/384))
78

89
## 0.14.0 (2024-06-20)
910

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

Lines changed: 7 additions & 7 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.15.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
27+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
47+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
67+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
92+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
117+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
118118
119119
#[starknet::contract]␊
120120
mod Foo {␊
@@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev).
152152
> Snapshot 1
153153
154154
`// SPDX-License-Identifier: MIT␊
155-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
155+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
156156
157157
#[starknet::contract]␊
158158
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.15.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.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.15.0␊
27+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
2828
2929
#[starknet::contract]␊
3030
mod MyContract {␊
@@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev).
8080
> Snapshot 1
8181
8282
`// SPDX-License-Identifier: MIT␊
83-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
83+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
8484
8585
#[starknet::contract]␊
8686
mod MyContract {␊
@@ -161,7 +161,7 @@ Generated by [AVA](https://avajs.dev).
161161
> Snapshot 1
162162
163163
`// SPDX-License-Identifier: MIT␊
164-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
164+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
165165
166166
#[starknet::contract]␊
167167
mod MyContract {␊
@@ -217,7 +217,7 @@ Generated by [AVA](https://avajs.dev).
217217
> Snapshot 1
218218
219219
`// SPDX-License-Identifier: MIT␊
220-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
220+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
221221
222222
#[starknet::contract]␊
223223
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.15.0␊
235+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
236236
237237
#[starknet::contract]␊
238238
mod MyContract {␊
@@ -288,7 +288,7 @@ Generated by [AVA](https://avajs.dev).
288288
> Snapshot 1
289289
290290
`// SPDX-License-Identifier: MIT␊
291-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
291+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
292292
293293
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
294294
@@ -361,7 +361,7 @@ Generated by [AVA](https://avajs.dev).
361361
> Snapshot 1
362362
363363
`// SPDX-License-Identifier: MIT␊
364-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
364+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
365365
366366
#[starknet::contract]␊
367367
mod MyContract {␊
1 Byte
Binary file not shown.

packages/core-cairo/src/erc1155.test.ts.md

Lines changed: 10 additions & 10 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.15.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
1313
1414
#[starknet::contract]␊
1515
mod MyToken {␊
@@ -80,7 +80,7 @@ Generated by [AVA](https://avajs.dev).
8080
> Snapshot 1
8181
8282
`// SPDX-License-Identifier: MIT␊
83-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
83+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
8484
8585
#[starknet::contract]␊
8686
mod MyToken {␊
@@ -168,7 +168,7 @@ Generated by [AVA](https://avajs.dev).
168168
> Snapshot 1
169169
170170
`// SPDX-License-Identifier: MIT␊
171-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
171+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
172172
173173
const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊
174174
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
@@ -272,7 +272,7 @@ Generated by [AVA](https://avajs.dev).
272272
> Snapshot 1
273273
274274
`// SPDX-License-Identifier: MIT␊
275-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
275+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
276276
277277
#[starknet::contract]␊
278278
mod MyToken {␊
@@ -345,7 +345,7 @@ Generated by [AVA](https://avajs.dev).
345345
> Snapshot 1
346346
347347
`// SPDX-License-Identifier: MIT␊
348-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
348+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
349349
350350
#[starknet::contract]␊
351351
mod MyToken {␊
@@ -467,7 +467,7 @@ Generated by [AVA](https://avajs.dev).
467467
> Snapshot 1
468468
469469
`// SPDX-License-Identifier: MIT␊
470-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
470+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
471471
472472
#[starknet::contract]␊
473473
mod MyToken {␊
@@ -597,7 +597,7 @@ Generated by [AVA](https://avajs.dev).
597597
> Snapshot 1
598598
599599
`// SPDX-License-Identifier: MIT␊
600-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
600+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
601601
602602
#[starknet::contract]␊
603603
mod MyToken {␊
@@ -720,7 +720,7 @@ Generated by [AVA](https://avajs.dev).
720720
> Snapshot 1
721721
722722
`// SPDX-License-Identifier: MIT␊
723-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
723+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
724724
725725
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
726726
const URI_SETTER_ROLE: felt252 = selector!("URI_SETTER_ROLE");␊
@@ -862,7 +862,7 @@ Generated by [AVA](https://avajs.dev).
862862
> Snapshot 1
863863
864864
`// SPDX-License-Identifier: MIT␊
865-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
865+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
866866
867867
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
868868
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
@@ -1063,7 +1063,7 @@ Generated by [AVA](https://avajs.dev).
10631063
> Snapshot 1
10641064
10651065
`// SPDX-License-Identifier: MIT␊
1066-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
1066+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
10671067
10681068
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
10691069
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
1 Byte
Binary file not shown.

packages/core-cairo/src/erc20.test.ts.md

Lines changed: 16 additions & 16 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.15.0␊
12+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
1313
1414
#[starknet::contract]␊
1515
mod MyToken {␊
@@ -48,7 +48,7 @@ Generated by [AVA](https://avajs.dev).
4848
> Snapshot 1
4949
5050
`// SPDX-License-Identifier: MIT␊
51-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
51+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
5252
5353
#[starknet::contract]␊
5454
mod MyToken {␊
@@ -115,7 +115,7 @@ Generated by [AVA](https://avajs.dev).
115115
> Snapshot 1
116116
117117
`// SPDX-License-Identifier: MIT␊
118-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
118+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
119119
120120
#[starknet::contract]␊
121121
mod MyToken {␊
@@ -192,7 +192,7 @@ Generated by [AVA](https://avajs.dev).
192192
> Snapshot 1
193193
194194
`// SPDX-License-Identifier: MIT␊
195-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
195+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
196196
197197
#[starknet::contract]␊
198198
mod MyToken {␊
@@ -303,7 +303,7 @@ Generated by [AVA](https://avajs.dev).
303303
> Snapshot 1
304304
305305
`// SPDX-License-Identifier: MIT␊
306-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
306+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
307307
308308
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
309309
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
@@ -434,7 +434,7 @@ Generated by [AVA](https://avajs.dev).
434434
> Snapshot 1
435435
436436
`// SPDX-License-Identifier: MIT␊
437-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
437+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
438438
439439
#[starknet::contract]␊
440440
mod MyToken {␊
@@ -551,7 +551,7 @@ Generated by [AVA](https://avajs.dev).
551551
> Snapshot 1
552552
553553
`// SPDX-License-Identifier: MIT␊
554-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
554+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
555555
556556
#[starknet::contract]␊
557557
mod MyToken {␊
@@ -620,7 +620,7 @@ Generated by [AVA](https://avajs.dev).
620620
> Snapshot 1
621621
622622
`// SPDX-License-Identifier: MIT␊
623-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
623+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
624624
625625
#[starknet::contract]␊
626626
mod MyToken {␊
@@ -687,7 +687,7 @@ Generated by [AVA](https://avajs.dev).
687687
> Snapshot 1
688688
689689
`// SPDX-License-Identifier: MIT␊
690-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
690+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
691691
692692
#[starknet::contract]␊
693693
mod MyToken {␊
@@ -764,7 +764,7 @@ Generated by [AVA](https://avajs.dev).
764764
> Snapshot 1
765765
766766
`// SPDX-License-Identifier: MIT␊
767-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
767+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
768768
769769
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
770770
const UPGRADER_ROLE: felt252 = selector!("UPGRADER_ROLE");␊
@@ -861,7 +861,7 @@ Generated by [AVA](https://avajs.dev).
861861
> Snapshot 1
862862
863863
`// SPDX-License-Identifier: MIT␊
864-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
864+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
865865
866866
#[starknet::contract]␊
867867
mod MyToken {␊
@@ -975,7 +975,7 @@ Generated by [AVA](https://avajs.dev).
975975
> Snapshot 1
976976
977977
`// SPDX-License-Identifier: MIT␊
978-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
978+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
979979
980980
#[starknet::contract]␊
981981
mod MyToken {␊
@@ -1089,7 +1089,7 @@ Generated by [AVA](https://avajs.dev).
10891089
> Snapshot 1
10901090
10911091
`// SPDX-License-Identifier: MIT␊
1092-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
1092+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
10931093
10941094
#[starknet::contract]␊
10951095
mod MyToken {␊
@@ -1176,7 +1176,7 @@ Generated by [AVA](https://avajs.dev).
11761176
> Snapshot 1
11771177
11781178
`// SPDX-License-Identifier: MIT␊
1179-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
1179+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
11801180
11811181
#[starknet::contract]␊
11821182
mod MyToken {␊
@@ -1314,7 +1314,7 @@ Generated by [AVA](https://avajs.dev).
13141314
> Snapshot 1
13151315
13161316
`// SPDX-License-Identifier: MIT␊
1317-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
1317+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
13181318
13191319
#[starknet::contract]␊
13201320
mod MyToken {␊
@@ -1469,7 +1469,7 @@ Generated by [AVA](https://avajs.dev).
14691469
> Snapshot 1
14701470
14711471
`// SPDX-License-Identifier: MIT␊
1472-
// Compatible with OpenZeppelin Contracts for Cairo ^0.15.0␊
1472+
// Compatible with OpenZeppelin Contracts for Cairo ^0.16.0␊
14731473
14741474
const PAUSER_ROLE: felt252 = selector!("PAUSER_ROLE");␊
14751475
const MINTER_ROLE: felt252 = selector!("MINTER_ROLE");␊
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)