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