Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Nov 19, 2024
1 parent 95952cf commit 84583c9
Show file tree
Hide file tree
Showing 18 changed files with 455 additions and 380 deletions.
14 changes: 7 additions & 7 deletions packages/core/src/contract.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import {Bar} from "./Bar.sol";␊
contract Foo is Bar {␊
}␊
Expand All @@ -38,8 +38,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import "./Quux.sol";␊
import {Bar} from "./Bar.sol";␊
import {Quux} from "./Quux.sol";␊
contract Foo is Bar, Quux {␊
}␊
Expand All @@ -53,7 +53,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import {Bar} from "./Bar.sol";␊
contract Foo is Bar {␊
constructor() Bar("param1", "param2") {}␊
Expand All @@ -68,8 +68,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import "./Quux.sol";␊
import {Bar} from "./Bar.sol";␊
import {Quux} from "./Quux.sol";␊
contract Foo is Bar, Quux {␊
constructor() Bar("param1", "param2") {}␊
Expand Down Expand Up @@ -183,7 +183,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "./Bar.sol";␊
import {Bar} from "./Bar.sol";␊
contract Foo is Bar {␊
constructor() Bar("param1", "param2") {␊
Expand Down
Binary file modified packages/core/src/contract.test.ts.snap
Binary file not shown.
24 changes: 12 additions & 12 deletions packages/core/src/custom.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/utils/Pausable.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
contract MyContract is Pausable, Ownable {␊
constructor(address initialOwner) Ownable(initialOwner) {}␊
Expand All @@ -48,7 +48,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
contract MyContract is Initializable {␊
/// @custom:oz-upgrades-unsafe-allow constructor␊
Expand All @@ -66,9 +66,9 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
contract MyContract is Initializable, OwnableUpgradeable, UUPSUpgradeable {␊
/// @custom:oz-upgrades-unsafe-allow constructor␊
Expand Down Expand Up @@ -109,7 +109,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
contract MyContract is Ownable {␊
constructor(address initialOwner) Ownable(initialOwner) {}␊
Expand All @@ -124,7 +124,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/AccessControl.sol";␊
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";␊
contract MyContract is AccessControl {␊
constructor(address defaultAdmin) {␊
Expand All @@ -141,7 +141,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
import {AccessManaged} from "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
contract MyContract is AccessManaged {␊
constructor(address initialAuthority) AccessManaged(initialAuthority) {}␊
Expand All @@ -156,9 +156,9 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";␊
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
contract MyContract is Initializable, OwnableUpgradeable, UUPSUpgradeable {␊
/// @custom:oz-upgrades-unsafe-allow constructor␊
Expand Down
Binary file modified packages/core/src/custom.test.ts.snap
Binary file not shown.
78 changes: 39 additions & 39 deletions packages/core/src/erc1155.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
contract MyToken is ERC1155, Ownable {␊
constructor(address initialOwner)␊
Expand All @@ -35,8 +35,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/AccessControl.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";␊
contract MyToken is ERC1155, AccessControl {␊
bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");␊
Expand Down Expand Up @@ -72,8 +72,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {AccessManaged} from "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
contract MyToken is ERC1155, AccessManaged {␊
constructor(address initialAuthority)␊
Expand All @@ -95,7 +95,7 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
contract MyToken is ERC1155 {␊
constructor()␊
Expand All @@ -112,9 +112,9 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
import {ERC1155Burnable} from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";␊
contract MyToken is ERC1155, Ownable, ERC1155Burnable {␊
constructor(address initialOwner)␊
Expand All @@ -136,9 +136,9 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
import {ERC1155Pausable} from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";␊
contract MyToken is ERC1155, Ownable, ERC1155Pausable {␊
constructor(address initialOwner)␊
Expand Down Expand Up @@ -177,8 +177,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
contract MyToken is ERC1155, Ownable {␊
constructor(address initialOwner)␊
Expand Down Expand Up @@ -214,8 +214,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/AccessControl.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";␊
contract MyToken is ERC1155, AccessControl {␊
bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");␊
Expand Down Expand Up @@ -267,8 +267,8 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {AccessManaged} from "@openzeppelin/contracts/access/manager/AccessManaged.sol";␊
contract MyToken is ERC1155, AccessManaged {␊
constructor(address initialAuthority)␊
Expand Down Expand Up @@ -304,9 +304,9 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import "@openzeppelin/contracts/access/Ownable.sol";␊
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";␊
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";␊
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";␊
import {ERC1155Supply} from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";␊
contract MyToken is ERC1155, Ownable, ERC1155Supply {␊
constructor(address initialOwner)␊
Expand Down Expand Up @@ -337,11 +337,11 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {ERC1155Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";␊
import {ERC1155PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import {ERC1155BurnableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
contract MyToken is Initializable, ERC1155Upgradeable, AccessControlUpgradeable, ERC1155PausableUpgradeable, ERC1155BurnableUpgradeable {␊
bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");␊
Expand Down Expand Up @@ -420,12 +420,12 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
import {ERC1155Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";␊
import {ERC1155PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import {ERC1155BurnableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
contract MyToken is Initializable, ERC1155Upgradeable, AccessControlUpgradeable, ERC1155PausableUpgradeable, ERC1155BurnableUpgradeable, UUPSUpgradeable {␊
bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE");␊
Expand Down Expand Up @@ -513,12 +513,12 @@ Generated by [AVA](https://avajs.dev).
// Compatible with OpenZeppelin Contracts ^5.0.0␊
pragma solidity ^0.8.22;␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
import {ERC1155Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";␊
import {AccessManagedUpgradeable} from "@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol";␊
import {ERC1155PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol";␊
import {ERC1155BurnableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol";␊
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";␊
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";␊
contract MyToken is Initializable, ERC1155Upgradeable, AccessManagedUpgradeable, ERC1155PausableUpgradeable, ERC1155BurnableUpgradeable, UUPSUpgradeable {␊
/// @custom:oz-upgrades-unsafe-allow constructor␊
Expand Down
Binary file modified packages/core/src/erc1155.test.ts.snap
Binary file not shown.
Loading

0 comments on commit 84583c9

Please sign in to comment.