Skip to content
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: solidity adapters #158

Merged
merged 7 commits into from
Nov 10, 2023
Merged

feat: solidity adapters #158

merged 7 commits into from
Nov 10, 2023

Conversation

redlarva
Copy link
Contributor

@redlarva redlarva commented Nov 6, 2023

Description:

Commit Message

feat: wormhole and layerzero adapters

see the guidelines for commit messages.

Changelog Entry

version: <log entry>

Checklist:

  • I have performed a self-review of my own code
  • I have documented my code in accordance with the documentation guidelines
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Merging #158 (743e4a2) into main (052bb7d) will increase coverage by 2.04%.
The diff coverage is 93.40%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #158      +/-   ##
============================================
+ Coverage     68.83%   70.87%   +2.04%     
  Complexity       55       55              
============================================
  Files            32       34       +2     
  Lines          1925     2012      +87     
  Branches         34       34              
============================================
+ Hits           1325     1426     +101     
+ Misses          584      570      -14     
  Partials         16       16              
Flag Coverage Δ
solidity 81.48% <93.40%> (+16.45%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ks/multi-protocol-dapp/MultiProtocolSampleDapp.sol 86.36% <100.00%> (+86.36%) ⬆️
contracts/evm/contracts/xcall/CallService.sol 84.50% <ø> (+0.70%) ⬆️
...tracts/evm/contracts/adapters/LayerZeroAdapter.sol 93.33% <93.33%> (ø)
...ntracts/evm/contracts/adapters/WormholeAdapter.sol 92.85% <92.85%> (ø)

@AntonAndell
Copy link
Collaborator

Should we make these upgradable for now? Or keep them constant? @redlarva

@redlarva
Copy link
Contributor Author

redlarva commented Nov 8, 2023

Should we make these upgradable for now? Or keep them constant? @redlarva

I'm uncertain about it, as there is no sensitive information stored in it. Moreover, if there are any connection issues, we have the option to create a new contract or connection, right? So, considering this, I think it shouldn't be made upgradable.

Copy link
Collaborator

@AntonAndell AntonAndell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, no comments really. Tests and coverage seems good.

redlarva and others added 7 commits November 10, 2023 13:45
* 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: 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: incorporate response fee for layerzero

* feat: incorporate response fee for wormhole

* refactor: remove duplicate dev docs
* 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: 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]>
@redlarva redlarva merged commit 2baf7aa into main Nov 10, 2023
14 checks passed
@redlarva redlarva deleted the feature/solidity-adapters branch November 10, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants