-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(rfq-relayer): support FastBridgeV2 with arbitrary calls [SLT-320] #3258
Open
dwasse
wants to merge
45
commits into
master
Choose a base branch
from
feat/relayer-arb-call
base: master
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 37 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
36a42bd
feat: add `callValue` to bridge params
ChiTimesChi 919a0a9
feat: add `callValue` to bridge tx V2
ChiTimesChi 867d5d9
test: add cases for SRC calls with `callValue`
ChiTimesChi c93c403
refactor: simplify tests further
ChiTimesChi 9575246
test: add cases for DST relays with `callValue`
ChiTimesChi 7872f2a
feat: support `callValue` in `bridge()`
ChiTimesChi ad7dd4c
feat: support `callValue` in `relay()`
ChiTimesChi 5ca5ad1
test: update revert message for failed ETH transfers
ChiTimesChi e8355c3
refactor: always forward full msg.value for the hook call
ChiTimesChi eb2bbb8
refactor: use `_pullToken` only in `bridge()`
ChiTimesChi c50042a
refactor: isolate validation of relay params
ChiTimesChi 9fb4461
refactor: isolate validation of the bridge params
ChiTimesChi 156e333
docs: could -> can
ChiTimesChi 2b77b4a
test: enable the backwards compatibility encoding test
ChiTimesChi 271f59d
fix: getBridgeTransaction partial support for V2 structs
ChiTimesChi 2317a58
test: add clarifications about expected reverts
ChiTimesChi c6a1fdc
Feat: initial fastbridgev2 bindings
dwasse e5e8646
Feat: abigen helpers
dwasse ab63286
Fix: generate
dwasse 93d9b7d
Fix: bridge enum test
dwasse e34a08b
Feat: relayer integrates fastbridgev2
dwasse 1056ef1
Feat: testutils uses v2
dwasse 1301270
Fix: deployer uses v2
dwasse 1081e0a
Fix: current e2e tests with v2 bridge
dwasse 467d5c7
Feat: add recipient mock test contract
dwasse f456bb7
Feat: add TestUSDCtoUSDCWithCallData
dwasse de621a7
Rename: TestArbitraryCall
dwasse e3c1604
Feat: add TransactionV1 in QuoteRequest struct for access to SendChai…
dwasse bff4f72
Cleanup: bridge tx fetching
dwasse 4ed813b
Cleanup: remove guard check for now
dwasse 5b6ec12
Feat: add v2 of fastbridgemock
dwasse d3dbeb0
Fix: build
dwasse 0bc22c5
Cleanup: lint
dwasse 117ce59
Cleanup: remove unnecessary test
dwasse 6dee3d1
Fix: mock fast bridge deployer
dwasse f57312b
Revert "Cleanup: remove unnecessary test"
dwasse 4b8dc68
Fix: flatten all files
dwasse b24d31d
Revert "Fix: flatten all files"
dwasse 91a6b8f
Feat: flatten mocks
dwasse b6a4609
Fix: tests
dwasse 05ab3dd
Fix: test
dwasse 94ee810
Fix: use nativeTokenDecimals instead of origin decimals for call value
dwasse 337782c
Merge branch 'master' into feat/relayer-arb-call
dwasse 8759318
Update abigen
dwasse f44c7ae
Fix: use native token decimals for CallValue
dwasse 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
Large diffs are not rendered by default.
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
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
21 changes: 3 additions & 18 deletions
21
packages/contracts-rfq/test/FastBridgeV2.Dst.Exclusivity.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
Oops, something went wrong.
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.
💡 Codebase verification
Build script patterns do not include any Solidity files
The updated build script patterns
contracts/**/*.sol
andtest/**/*.sol
do not match any Solidity files inpackages/contracts-rfq/contracts/
orpackages/contracts-rfq/test/
. As a result, no Solidity files will be included in the build process.packages/contracts-core/contracts/**/*.sol
andservices/rfq/contracts/**/*.sol
.🔗 Analysis chain
LGTM! Verify the impact of the expanded file pattern.
The change to include all Solidity files in subdirectories of
contracts
andtest
is a good improvement. It ensures that no Solidity files are missed in the build process, which is especially helpful as the project grows and potentially adds more nested directories.To ensure this change doesn't unintentionally include files that shouldn't be part of the build, please run the following script:
This will help you verify that only the intended files are being included in the build process.
Please run the following script to list all Solidity files in the repository. This will help identify the correct paths and ensure that the build process includes the intended files.
Please run the following script to list and count all Solidity files included by the updated build patterns in
packages/contracts-rfq/package.json
. This will help verify that the expanded patterns correctly include all intended files.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 538
Script:
Length of output: 16116
Script:
Length of output: 1967