etherspot-contracts
etherspot-contracts copied to clipboard
Feature/pro 305 integrate layer zero/stargate protocol
Description
- Amended StargateFacet contract to handle new changes in logic. Updated and added an ETH transfer function that is a new feature that Stargate has enabled.
- Removed some logic from the old contract as it can be handled by backend (pool ids).
- Test suite updated and amended for new iteration of contract.
Motivation and Context
- To update the StargateFacet contract to comply with latest Stargate changes and to add new functionality.
How Has This Been Tested?
- Test suite (see screenshots).
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
PRO-305 Etherspot to integrate LayerZero/Stargate protocol
Integrate LayerZero/Stargate protocol to Etherspot's cross-chain aggregation solution
More information: https://layerzero.gitbook.io/docs/guides/master/how-to-send-a-message
Documentation and example code: https://stargateprotocol.gitbook.io/stargate/
There is one test that is commented out which is not working correctly that I am currently in discussion with Stargate on how to solve. Rather than hold up the PR for this I will amend this test separately when the problem has been debugged.
SGReceiver.sol is part of this test to check the logic executes correctly on receiving chain.