-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI: Support
--referenceBuildInfoDirs
option (#1062)
Co-authored-by: Hadrien Croubois <[email protected]>
- Loading branch information
Showing
22 changed files
with
593 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
contract MyContract { | ||
uint256 public x; | ||
uint256 public y; | ||
uint256[48] private __gap; | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/core/contracts/test/cli/ValidateBuildInfoV2_Annotation_Bad.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
/// @custom:oz-upgrades-from build-info-v1:MyContract | ||
contract MyContract { | ||
uint256 public x; | ||
uint256[49] private __gap; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/core/contracts/test/cli/ValidateBuildInfoV2_Annotation_Ok.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
/// @custom:oz-upgrades-from build-info-v1:MyContract | ||
contract MyContract { | ||
uint256 public x; | ||
uint256 public y; | ||
uint256 public z; | ||
uint256[47] private __gap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
contract MyContract { | ||
uint256 public x; | ||
uint256[49] private __gap; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/core/contracts/test/cli/ValidateBuildInfoV2_Branch_Bad.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
/// @custom:oz-upgrades-from build-info-v2:MyContract | ||
contract MyContract { | ||
uint256 public x; | ||
uint256 public y; | ||
uint256 public zBranch; | ||
uint256[47] private __gap; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/core/contracts/test/cli/ValidateBuildInfoV2_Branch_Ok.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
/// @custom:oz-upgrades-from build-info-v1:MyContract | ||
contract MyContract { | ||
uint256 public x; | ||
uint256 public y; | ||
uint256 public zBranch; | ||
uint256[47] private __gap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
contract MyContract { | ||
uint256 public x; | ||
uint256 public y; | ||
uint256 public z; | ||
uint256[47] private __gap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.