-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0419cc2
commit ca63592
Showing
7 changed files
with
77 additions
and
53 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
51 changes: 0 additions & 51 deletions
51
contracts/src/v0.8/ccip/test/applications/PingPong/PingPong.plumbing.t.sol
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
contracts/src/v0.8/ccip/test/applications/PingPong/PingPong.setCounterpart.t.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,15 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {PingPongDappSetup} from "./PingPongDappSetup.t.sol"; | ||
|
||
contract PingPong_setCounterpart is PingPongDappSetup { | ||
function test_Fuzz_CounterPartAddress_Success(uint64 chainSelector, address counterpartAddress) public { | ||
s_pingPong.setCounterpartChainSelector(chainSelector); | ||
|
||
s_pingPong.setCounterpart(chainSelector, counterpartAddress); | ||
|
||
assertEq(s_pingPong.getCounterpartAddress(), counterpartAddress); | ||
assertEq(s_pingPong.getCounterpartChainSelector(), chainSelector); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
contracts/src/v0.8/ccip/test/applications/PingPong/PingPong.setCounterpartAddress.t.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,14 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {PingPongDappSetup} from "./PingPongDappSetup.t.sol"; | ||
|
||
contract PingPong_setCounterpartAddress is PingPongDappSetup { | ||
function test_Fuzz_CounterPartAddress_Success( | ||
address counterpartAddress | ||
) public { | ||
s_pingPong.setCounterpartAddress(counterpartAddress); | ||
|
||
assertEq(s_pingPong.getCounterpartAddress(), counterpartAddress); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...racts/src/v0.8/ccip/test/applications/PingPong/PingPong.setCounterpartChainSelector.t.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,14 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {PingPongDappSetup} from "./PingPongDappSetup.t.sol"; | ||
|
||
contract PingPong_setCounterpartChainSelector is PingPongDappSetup { | ||
function test_Fuzz_CounterPartChainSelector_Success( | ||
uint64 chainSelector | ||
) public { | ||
s_pingPong.setCounterpartChainSelector(chainSelector); | ||
|
||
assertEq(s_pingPong.getCounterpartChainSelector(), chainSelector); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
contracts/src/v0.8/ccip/test/applications/PingPong/PingPong.setOutOfOrderExecution.t.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,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {PingPongDemo} from "../../../applications/PingPongDemo.sol"; | ||
import {PingPongDappSetup} from "./PingPongDappSetup.t.sol"; | ||
|
||
contract PingPong_setOutOfOrderExecution is PingPongDappSetup { | ||
function test_OutOfOrderExecution_Success() public { | ||
assertFalse(s_pingPong.getOutOfOrderExecution()); | ||
|
||
vm.expectEmit(); | ||
emit PingPongDemo.OutOfOrderExecutionChange(true); | ||
|
||
s_pingPong.setOutOfOrderExecution(true); | ||
|
||
assertTrue(s_pingPong.getOutOfOrderExecution()); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
contracts/src/v0.8/ccip/test/applications/PingPong/PingPong.setPaused.t.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,14 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {PingPongDappSetup} from "./PingPongDappSetup.t.sol"; | ||
|
||
contract PingPong_setPaused is PingPongDappSetup { | ||
function test_Pausing_Success() public { | ||
assertFalse(s_pingPong.isPaused()); | ||
|
||
s_pingPong.setPaused(true); | ||
|
||
assertTrue(s_pingPong.isPaused()); | ||
} | ||
} |