-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/int 668/ccip #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vnavascues
wants to merge
19
commits into
main
Choose a base branch
from
feat/int-668/ccip
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bdc0010
chore: installed Chainlink CCIP dependencies
vnavascues a7b9fe1
feat: added EnsoCCIPReceiver
vnavascues 998c5d9
chore: forge fmt & forge lint
vnavascues 17b38f9
chore: ci.yml, moved bash scripts
vnavascues cb05907
feat: added pausable capabilities
vnavascues 51d1b9c
feat: gas savings
vnavascues afd501c
feat: WIP - EnsoCCIPReceiverDefensive - no reverts
vnavascues 0c6860d
feat: EnsoCCIPReceiverDefensive changes
vnavascues 84ae1af
chore: removed non-defensive EnsoCCIPReceiver
vnavascues 4d5e943
feat: prevent refunding to zero address version 1
vnavascues 4919f57
feat: prevent zero address receiver, version 2
vnavascues b6f90ec
feat: WIP - unit tests
vnavascues daffe3d
feat: WIP - tests
vnavascues 3fed934
feat: replaced abi.decode with CCIPMessageDecoder lib
vnavascues 3975f88
feat: added EnsoCCIPReceiver tests
vnavascues 0442ae5
WIP - tree for complex tests
vnavascues 8068820
feat: removed estimatedGas from message
vnavascues cec55b2
feat: added EnsoCCIPReceiver tests
vnavascues 0526e61
chore: make sure MessageQuarantined is informational
vnavascues File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,5 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| echo "🔎 Running forge fmt (default profile in foundry.toml)..." | ||
| forge fmt |
This file contains hidden or 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,29 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
|
|
||
| echo "🔎 Running forge lint (default profile in foundry.toml)..." | ||
|
|
||
| # Capture BOTH stdout and stderr, but don't fail on forge's exit code | ||
| set +e | ||
| RAW_OUTPUT="$(forge lint --color never 2>&1)" | ||
| set -e | ||
|
|
||
| # Show raw linter output (so CI logs display everything) | ||
| printf '%s\n' "$RAW_OUTPUT" | ||
|
|
||
| # Normalize line endings (remove any CRs from CRLF) | ||
| SANITIZED="$(printf '%s\n' "$RAW_OUTPUT" | tr -d '\r')" | ||
|
|
||
| # Extract diagnostic lines that start with a severity (allow optional leading spaces), | ||
| # and ignore codesize warnings | ||
| DIAGNOSTICS="$(printf '%s\n' "$SANITIZED" \ | ||
| | grep -a -E '^[[:space:]]*(high|med|low|info|gas|warning|note)\[' \ | ||
| | grep -vF '[codesize]' \ | ||
| || true)" | ||
|
|
||
| if [ -n "$DIAGNOSTICS" ]; then | ||
| echo "❌ Linting failed: either fix or disable [high|med|low|info|gas|warning|note] before committing." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✅ Pre-commit checks passed." |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ zkout/ | |
|
|
||
| # Dependencies | ||
| node_modules/ | ||
| dependencies/ | ||
|
|
||
| # Deprecated submodule folder | ||
| lib/ | ||
|
|
||
Submodule @openzeppelin-contracts-5.2.0
deleted from
acd4ff
Submodule account-abstraction-v7-0.7.0
deleted from
7af70c
Submodule devtools-0.0.1
deleted from
ac8912
Submodule enso-weiroll-1.4.1
deleted from
900250
Submodule forge-std-1.9.7
deleted from
77041d
Submodule layerzero-v2-2.0.2
deleted from
9a4049
Submodule safe-smart-account-1.5.0
deleted from
dc437e
Submodule safe-tools-0.2.0
deleted from
ce6c65
Submodule solady-0.1.22
deleted from
65e87c
Submodule v4-core-4.0.0
deleted from
e50237
Submodule v4-periphery-4.0.0
deleted from
9628c3
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ safe-tools/=dependencies/safe-tools-0.2.0/src/ | |
| solady/=dependencies/solady-0.1.22/src/ | ||
| solmate/=dependencies/solady-0.1.22/lib/solmate/src/ | ||
| @ensdomains/=dependencies/v4-core-4.0.0/node_modules/@ensdomains/ | ||
| @openzeppelin/=dependencies/@openzeppelin-contracts-5.2.0/ | ||
| forge-gas-snapshot/=dependencies/v4-periphery-4.0.0/lib/permit2/lib/forge-gas-snapshot/src/ | ||
| hardhat/=dependencies/v4-core-4.0.0/node_modules/hardhat/ | ||
| permit2/=dependencies/v4-periphery-4.0.0/lib/permit2/ | ||
|
|
@@ -34,3 +33,12 @@ safe-tools-0.2.0/=dependencies/safe-tools-0.2.0/src/ | |
| solady-0.1.22/=dependencies/solady-0.1.22/src/ | ||
| v4-core-4.0.0/=dependencies/v4-core-4.0.0/src/ | ||
| v4-periphery-4.0.0/=dependencies/v4-periphery-4.0.0/src/ | ||
| chainlink-ccip=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/ | ||
| chainlink-ccip-1.6.2/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/ | ||
| chainlink-evm=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/ | ||
| chainlink-evm-1.5.0/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/ | ||
| @chainlink/=dependencies/chainlink-evm-1.5.0/ | ||
| @openzeppelin/[email protected]/utils/introspection/IERC165.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol | ||
| @openzeppelin/[email protected]/utils/introspection/ERC165Checker.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/ERC165Checker.sol | ||
| @openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol | ||
| @openzeppelin/[email protected]/token/ERC20/IERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PeterMPhillips this remapping is a bit hacky but I wanted to solve Chainlink
CCIPReceiver.soldependency to OZ 5.0.2 without having to install 5.0.2 (IERC165.sol doesn't change between 5.0.2 and 5.2.0 - what we have installed). No problem installing OZ 5.0.2.