-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: test contracts to test folder (#162)
## Description Moves files from `src/contracts/test` to `test/src` (from which they will be further pulled out until no contract is left there. This is to avoid triggering the mandatory two reviews check on PRs that move these files to the test folder. This PR will be merged with a single review. ## Test Plan Code compiles. Number of changes is constant before `fmt`.
- Loading branch information
Showing
25 changed files
with
159 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
src/contracts/test/vendor/ | ||
src/contracts/test |
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 @@ | ||
../../test/src |
13 changes: 0 additions & 13 deletions
13
src/contracts/test/GPv2AllowListAuthenticationTestInterface.sol
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
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,11 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
pragma solidity >=0.7.6 <0.9.0; | ||
|
||
import "src/contracts/GPv2AllowListAuthentication.sol"; | ||
import "src/contracts/libraries/GPv2EIP1967.sol"; | ||
|
||
contract GPv2AllowListAuthenticationTestInterface is GPv2AllowListAuthentication { | ||
constructor(address owner) { | ||
GPv2EIP1967.setAdmin(owner); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ts/test/GPv2AllowListAuthenticationV2.sol → test/src/GPv2AllowListAuthenticationV2.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
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
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,26 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
pragma solidity >=0.7.6 <0.9.0; | ||
pragma abicoder v2; | ||
|
||
import "src/contracts/libraries/GPv2Transfer.sol"; | ||
|
||
contract GPv2TransferTestInterface { | ||
function fastTransferFromAccountTest(IVault vault, GPv2Transfer.Data calldata transfer, address recipient) | ||
external | ||
{ | ||
GPv2Transfer.fastTransferFromAccount(vault, transfer, recipient); | ||
} | ||
|
||
function transferFromAccountsTest(IVault vault, GPv2Transfer.Data[] calldata transfers, address recipient) | ||
external | ||
{ | ||
GPv2Transfer.transferFromAccounts(vault, transfers, recipient); | ||
} | ||
|
||
function transferToAccountsTest(IVault vault, GPv2Transfer.Data[] memory transfers) external { | ||
GPv2Transfer.transferToAccounts(vault, transfers); | ||
} | ||
|
||
// solhint-disable-next-line no-empty-blocks | ||
receive() external payable {} | ||
} |
File renamed without changes.
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.