@@ -4,50 +4,6 @@ The actual snapshot is saved in `prepare-peer-project.test.ts.snap`.
4
4
5
5
Generated by [ AVA] ( https://avajs.dev ) .
6
6
7
- ## transpile ISomeInterface.sol
8
-
9
- > Snapshot 1
10
-
11
- {
12
- fileName: 'ISomeInterface.sol',
13
- path: 'contracts/project/ISomeInterfaceUpgradeable.sol',
14
- source: `// SPDX-License-Identifier: UNLICENSED␊
15
- pragma solidity ^0.8.0;␊
16
- ␊
17
- import {ISomeInterface as ISomeInterfaceUpgradeable} from "@openzeppelin/contracts/project/ISomeInterface.sol";␊
18
- `,
19
- }
20
-
21
- ## transpile SomeLibrary.sol
22
-
23
- > Snapshot 1
24
-
25
- {
26
- fileName: 'SomeLibrary.sol',
27
- path: 'contracts/project/SomeLibraryUpgradeable.sol',
28
- source: `// SPDX-License-Identifier: UNLICENSED␊
29
- pragma solidity ^0.8.0;␊
30
- ␊
31
- import {ISomeInterfaceUpgradeable} from "./ISomeInterfaceUpgradeable.sol";␊
32
- ␊
33
- import {SomeLibrary as SomeLibraryUpgradeable} from "@openzeppelin/contracts/project/SomeLibrary.sol";␊
34
- `,
35
- }
36
-
37
- ## transpile SomeStatelessContract.sol
38
-
39
- > Snapshot 1
40
-
41
- {
42
- fileName: 'SomeStatelessContract.sol',
43
- path: 'contracts/project/SomeStatelessContractUpgradeable.sol',
44
- source: `// SPDX-License-Identifier: UNLICENSED␊
45
- pragma solidity ^0.8.0;␊
46
- ␊
47
- import {SomeStatelessContract as SomeStatelessContractUpgradeable} from "@openzeppelin/contracts/project/SomeStatelessContract.sol";␊
48
- `,
49
- }
50
-
51
7
## transpile SomeContract.sol
52
8
53
9
> Snapshot 1
@@ -58,27 +14,27 @@ Generated by [AVA](https://avajs.dev).
58
14
source: `// SPDX-License-Identifier: UNLICENSED␊
59
15
pragma solidity ^0.8.0;␊
60
16
␊
61
- import {ISomeInterfaceUpgradeable } from "./ISomeInterfaceUpgradeable .sol";␊
62
- import {SomeLibraryUpgradeable } from "./SomeLibraryUpgradeable .sol";␊
63
- import {SomeStatelessContractUpgradeable } from "./SomeStatelessContractUpgradeable .sol";␊
17
+ import {ISomeInterface } from "@openzeppelin/contracts/project/ISomeInterface .sol";␊
18
+ import {SomeLibrary } from "@openzeppelin/contracts/project/SomeLibrary .sol";␊
19
+ import {SomeStatelessContract } from "@openzeppelin/contracts/project/SomeStatelessContract .sol";␊
64
20
import {Initializable} from "../Initializable.sol";␊
65
21
␊
66
- import {ISomeContract as ISomeContractUpgradeable } from "@openzeppelin/contracts/project/SomeContract.sol";␊
22
+ import { ISomeContract } from "@openzeppelin/contracts/project/SomeContract.sol";␊
67
23
␊
68
- import {Error1 as Error1Upgradeable } from "@openzeppelin/contracts/project/SomeContract.sol";␊
24
+ import { Error1 } from "@openzeppelin/contracts/project/SomeContract.sol";␊
69
25
␊
70
- import {freeFn_1 as freeFn_1Upgradeable } from "@openzeppelin/contracts/project/SomeContract.sol";␊
26
+ import { freeFn_1 } from "@openzeppelin/contracts/project/SomeContract.sol";␊
71
27
␊
72
- import {SomeStruct as SomeStructUpgradeable } from "@openzeppelin/contracts/project/SomeContract.sol";␊
28
+ import { SomeStruct } from "@openzeppelin/contracts/project/SomeContract.sol";␊
73
29
␊
74
30
contract SomeBaseContractUpgradeable is Initializable {␊
75
31
function __SomeBaseContract_init() internal onlyInitializing {␊
76
32
}␊
77
33
␊
78
34
function __SomeBaseContract_init_unchained() internal onlyInitializing {␊
79
35
}␊
80
- function test(ISomeInterfaceUpgradeable other) public virtual returns (bool) {␊
81
- return SomeLibraryUpgradeable .bothFunctions(other);␊
36
+ function test(ISomeInterface other) public virtual returns (bool) {␊
37
+ return SomeLibrary .bothFunctions(other);␊
82
38
}␊
83
39
␊
84
40
/**␊
@@ -89,27 +45,27 @@ Generated by [AVA](https://avajs.dev).
89
45
uint256[50] private __gap;␊
90
46
}␊
91
47
␊
92
- contract SomeContractUpgradeable is Initializable, ISomeContractUpgradeable , SomeBaseContractUpgradeable {␊
48
+ contract SomeContractUpgradeable is Initializable, ISomeContract , SomeBaseContractUpgradeable {␊
93
49
SomeStruct s;␊
94
50
␊
95
51
function __SomeContract_init() internal onlyInitializing {␊
96
52
}␊
97
53
␊
98
54
function __SomeContract_init_unchained() internal onlyInitializing {␊
99
55
}␊
100
- /// @inheritdoc ISomeInterfaceUpgradeable ␊
56
+ /// @inheritdoc ISomeInterface ␊
101
57
function someFunction() public pure override returns (bool) {␊
102
58
return false;␊
103
59
}␊
104
60
␊
105
- /// @inheritdoc ISomeInterfaceUpgradeable ␊
61
+ /// @inheritdoc ISomeInterface ␊
106
62
function someOtherFunction() public pure override returns (bool) {␊
107
63
return true;␊
108
64
}␊
109
65
␊
110
66
/// @inheritdoc SomeBaseContractUpgradeable␊
111
- function test(ISomeInterfaceUpgradeable other) public override returns (bool) {␊
112
- return SomeLibraryUpgradeable .bothFunctions(this) && super.test(other);␊
67
+ function test(ISomeInterface other) public override returns (bool) {␊
68
+ return SomeLibrary .bothFunctions(this) && super.test(other);␊
113
69
}␊
114
70
␊
115
71
/**␊
@@ -132,9 +88,10 @@ Generated by [AVA](https://avajs.dev).
132
88
source: `// SPDX-License-Identifier: UNLICENSED␊
133
89
pragma solidity ^0.8.0;␊
134
90
␊
135
- import {ISomeInterfaceUpgradeable} from "./ISomeInterfaceUpgradeable.sol";␊
136
- import {SomeLibraryUpgradeable} from "./SomeLibraryUpgradeable.sol";␊
137
- import {ISomeContractUpgradeable, SomeContractUpgradeable} from "./SomeContractUpgradeable.sol";␊
91
+ import {ISomeInterface} from "@openzeppelin/contracts/project/ISomeInterface.sol";␊
92
+ import {SomeLibrary} from "@openzeppelin/contracts/project/SomeLibrary.sol";␊
93
+ import {ISomeContract} from "@openzeppelin/contracts/project/SomeContract.sol";␊
94
+ import {SomeContractUpgradeable} from "./SomeContractUpgradeable.sol";␊
138
95
import {Initializable} from "../Initializable.sol";␊
139
96
␊
140
97
contract SomeOtherContractUpgradeable is Initializable, SomeContractUpgradeable {␊
0 commit comments