Skip to content

Commit

Permalink
add msgsBetweenSeqNums (atm failing) test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkouv committed Jul 18, 2024
1 parent 54defa6 commit 2e516fa
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 8 deletions.
19 changes: 19 additions & 0 deletions contracts/src/v0.8/ccip/test/helpers/CCIPReaderTester.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ contract CCIPReaderTester {
bytes onRamp;
}

struct EVM2AnyRampMessage {
RampMessageHeader header;
address sender;
}

struct RampMessageHeader {
bytes32 messageId;
uint64 sourceChainSelector;
uint64 destChainSelector;
uint64 sequenceNumber;
uint64 nonce;
}

mapping(uint64 sourceChainSelector => SourceChainConfig sourceChainConfig) internal s_sourceChainConfigs;

function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory) {
Expand All @@ -17,4 +30,10 @@ contract CCIPReaderTester {
function setSourceChainConfig(uint64 sourceChainSelector, SourceChainConfig memory sourceChainConfig) external {
s_sourceChainConfigs[sourceChainSelector] = sourceChainConfig;
}

event CCIPSendRequested(uint64 indexed destChainSelector, EVM2AnyRampMessage message);

function EmitCCIPSendRequested(uint64 destChainSelector, EVM2AnyRampMessage memory message) external {
emit CCIPSendRequested(destChainSelector, message);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e516fa

Please sign in to comment.