-
Notifications
You must be signed in to change notification settings - Fork 9
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: implement layerzero adapter #149
feat: implement layerzero adapter #149
Conversation
* remove msg encoding in encodeCSMessageResponse * chore: forge init * forge install: forge-std v1.6.1 * initial foundry setup * forge install: openzeppelin-contracts-upgradeable v4.9.3 * forge install: openzeppelin-contracts v4.9.3 * add contract setup script for Callservice for Xcall * add initial test setup for Xcall
* add setAdmin testCases - setAdmin by Owner - setAdmin by unauthorized caller --------- Co-authored-by: AntonAndell <[email protected]>
* add setProtocolFee and getProtocolFee testCases - setProtocolFee by Owner - setProtocolFee by added admin - setProtocolFee by unauthrorized user --------- Co-authored-by: AntonAndell <[email protected]>
* add setProtocolFeeHandler and getProtocolFeeHandler testCases - setProtocolFeeHandler by Owner/Admin - setProtocolFee by unauthrorized user --------- Co-authored-by: AntonAndell <[email protected]>
* add defaultConnection check on sendCallMessage * add defaultConnection setter for xCall * add revert messages on require()
* update encodeCSMessageRequest with protocol encoded code
* add defaultConnection check on sendCallMessage * add defaultConnection setter for xCall * add revert messages on require() * - add CallMessage eventLog for assertion - Add Connection instances - Add required const variables for netTo for NID and dstAccount for addr * add testCase for HandleResponse - DefaultProtocol with access - DefaultProtocol with unauthorized access * TestCases - handleResponse with singleProtocol - handleResponse with singleProtocol by unauthorized * TestCases - handleResponse with MultiProtocol --------- Co-authored-by: AntonAndell <[email protected]>
* TestCases - executeCall using singleProtocol * Add `CallExecuted` eventlogs for assertions * TestCases - executeCall using defaultProtocol * TestCases - executeCall using multiProtocols
* fix: clearing out unused code * fix: clearing out contract part in library --------- Co-authored-by: AntonAndell <[email protected]>
* update solidity document to deploy tthe contract as well as getting ready with forge commands * update solidity document to deploy tthe contract as well as getting ready with forge commands
* TestCases - Rollback using singleProtocol * TestCases - Rollback using DefaultProtocol - Rollback using DefaultProtocol NotAuthorized * TestCases - Rollback using MultiProtocol - Rollback with SuccessMessage * fix rollbackSuccess testcase to remove rollbackMessage eventlog * remove rollbackMessage eventlogs from executeCall()
* - Fix variables - Fix Imports - TestCases - ExecuteRollback using SingleProtocol - ExecuteRollback with DefaultProtocol - ExecuteRollback using MultiProtocol * fix executeRollack testcases
* fix sendCallMessageSingleProtocol testCase * add `CallMessgeSent` eventLog for test * add testCase for sendMessage using multiProtocol * add testCase for sendMessage using defaultProtocol * Fix expectCall on sendMessage TestCases --------- Co-authored-by: AntonAndell <[email protected]>
* fix: deployment script updated * fix: foundry.toml * fix: nid taken from env * update deployment script to add the setup params for xcall-multi * update deploy script on shellScript file to deploy the contracts easily from CLI * add .env example file to follow to deploy the xcall --------- Co-authored-by: sdpbhandari <[email protected]>
* fix imports error after merge * Fix verifySuccess() Add assert on verifySuccess for rollback tests Add assert on verifySuccess for executeRollback tests
* ci: add solidity coverage workflow * ci: test codcov workflow * ci: debug foundy setup issue * ci: debug foundy setup issue * ci: debug foundy setup issue * ci: debug foundy setup issue * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: export foundryup PATH * ci: fix build on forge * ci: fix build on forge * ci: fix build on forge * ci: fix build on forge * ci: fix build on forge * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build path on workflows * ci: fix build paths on workflows * ci: add workflow for solidity-tests * ci: add env on workflow * ci: update test workflow * ci: update test workflow ignore libraries from coverage folder * ci: install lcov * ci: install lcov --------- Co-authored-by: Deepak Bomjan <[email protected]>
refactor: evm folder structure
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## feature/solidity-adapters #149 +/- ##
===============================================================
- Coverage 68.95% 68.85% -0.10%
Complexity 54 54
===============================================================
Files 33 34 +1
Lines 1955 1994 +39
Branches 33 33
===============================================================
+ Hits 1348 1373 +25
- Misses 591 605 +14
Partials 16 16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Great work, looks clean.
Would be good to create a joint staging branch with the wormhole adapted to organize everything.
Also same comment here would be interesting if we could add a configurable response fee here aswell via the adpater parameters
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.
Looks ready just minor changes/decisions to be made
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.
LGTM
* feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]>
* feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]>
* feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]>
* feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]>
* feat: implement wormhole adapter (#144) * feat: implement wormhole adapter * fix: removed event listener for request submitted * tests: added rollback test for wormhole * tests: added admin test * fix: xcall test * feat: add method to update gas limit * feat: implement layerzero adapter (#149) * feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]> * fix: set sn to 0 if response not required * feature: adapter fee airdrop (#176) * feat: incorporate response fee for layerzero * feat: incorporate response fee for wormhole * refactor: remove duplicate dev docs * feat: implement wormhole adapter (#144) * feat: implement wormhole adapter * fix: removed event listener for request submitted * tests: added rollback test for wormhole * tests: added admin test * fix: xcall test * feat: add method to update gas limit * feat: implement layerzero adapter (#149) * feat: added interface for layerzero and install dependencies * feat: implement layerzero adapter * fix: test for layer-zero and wormhole * refactor: clean up * feat: add method to update gas limit for layer zero * fix: use contract as refund address --------- Co-authored-by: AntonAndell <[email protected]> * fix: set sn to 0 if response not required --------- Co-authored-by: AntonAndell <[email protected]>
Description:
Commit Message
see the guidelines for commit messages.
Changelog Entry
Checklist: