-
Notifications
You must be signed in to change notification settings - Fork 54
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
77d0fdf
commit 35feee9
Showing
11 changed files
with
187 additions
and
273 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
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
33 changes: 33 additions & 0 deletions
33
contracts/src/v0.8/ccip/test/mocks/MockUSDCTransmitter.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,33 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "../../pools/USDC/IMessageTransmitter.sol"; | ||
|
||
contract MockUSDCTransmitter is IMessageTransmitter { | ||
// Indicated whether the receiveMessage() call should succeed. | ||
bool public s_shouldSucceed; | ||
uint32 private immutable i_version; | ||
uint32 private immutable i_localDomain; | ||
|
||
constructor(uint32 version, uint32 localDomain) { | ||
i_version = version; | ||
i_localDomain = localDomain; | ||
s_shouldSucceed = true; | ||
} | ||
|
||
function receiveMessage(bytes calldata, bytes calldata) external view returns (bool success) { | ||
return s_shouldSucceed; | ||
} | ||
|
||
function setShouldSucceed(bool shouldSucceed) external { | ||
s_shouldSucceed = shouldSucceed; | ||
} | ||
|
||
function version() external view returns (uint32) { | ||
return i_version; | ||
} | ||
|
||
function localDomain() external view returns (uint32) { | ||
return i_localDomain; | ||
} | ||
} |
Oops, something went wrong.