-
Notifications
You must be signed in to change notification settings - Fork 8
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
imp: added multipass to handle relaying errors gracefully #138
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #138 +/- ##
==========================================
+ Coverage 96.84% 96.88% +0.04%
==========================================
Files 11 12 +1
Lines 539 546 +7
==========================================
+ Hits 522 529 +7
Misses 17 17 ☔ View full report in Codecov by Sentry. |
import { ICSCore } from "./ICSCore.sol"; | ||
import { IIBCApp } from "./interfaces/IIBCApp.sol"; | ||
import { IICS26Router } from "./interfaces/IICS26Router.sol"; | ||
import { IICS02Client } from "./interfaces/IICS02Client.sol"; | ||
import { IICS04Channel } from "./interfaces/IICS04Channel.sol"; | ||
import { ICSCore } from "./ICSCore.sol"; | ||
import { IIBCStore } from "./interfaces/IIBCStore.sol"; | ||
import { IICS24HostErrors } from "./errors/IICS24HostErrors.sol"; | ||
import { IBCStore } from "./utils/IBCStore.sol"; | ||
import { IICS26RouterErrors } from "./errors/IICS26RouterErrors.sol"; | ||
import { Ownable } from "@openzeppelin/access/Ownable.sol"; | ||
import { Strings } from "@openzeppelin/utils/Strings.sol"; | ||
import { IBCIdentifiers } from "./utils/IBCIdentifiers.sol"; | ||
import { IIBCAppCallbacks } from "./msgs/IIBCAppCallbacks.sol"; | ||
import { ICS24Host } from "./utils/ICS24Host.sol"; | ||
import { ILightClientMsgs } from "./msgs/ILightClientMsgs.sol"; | ||
import { IICS04ChannelMsgs } from "./msgs/IICS04ChannelMsgs.sol"; | ||
import { IBCStore } from "./utils/IBCStore.sol"; | ||
import { ICS24Host } from "./utils/ICS24Host.sol"; | ||
import { IBCIdentifiers } from "./utils/IBCIdentifiers.sol"; | ||
import { Multipass } from "./utils/Multipass.sol"; | ||
|
||
import { Ownable } from "@openzeppelin/access/Ownable.sol"; | ||
import { Strings } from "@openzeppelin/utils/Strings.sol"; | ||
import { ReentrancyGuardTransient } from "@openzeppelin/utils/ReentrancyGuardTransient.sol"; | ||
import { Multicall } from "@openzeppelin/utils/Multicall.sol"; |
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.
I reorganized the deps 😅 . Maybe there is a linter for this?
* Consider any assumption about calldata validation performed by the sender may be violated if it's not especially | ||
* careful about sending transactions invoking {multipass}. For example, a relay address that filters function | ||
* selectors won't filter calls nested within a {multipass} operation. |
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.
What happens when one call fails? Do the state changes of that specific call get reverted while the rest will continue to pass?
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.
That's my understanding.
Description
closes: #112
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.