-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update Faucet contract to use bridging on drip function #10621
Conversation
WalkthroughWalkthroughThe updates primarily enhance the Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant Faucet
participant SafeCall
participant Bridge
User->>Faucet: Call drip(recipient, amount, bridge, data, gasLimit)
Faucet->>Faucet: Check recipient != faucet address
Faucet->>SafeCall: SafeCall.call{value: amount}(recipient, data, gasLimit)
SafeCall-->>Faucet: Transfer status
Faucet->>Bridge: Log Drip event with bridge parameter
Faucet-->>User: Drip transaction completed
Recent Review DetailsConfiguration used: .coderabbit.yml Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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 think you will need to add a changeset to this, but would confirm with member of the smart contracts team
Semgrep found 2 Variable |
95e0c9d
to
060b6f5
Compare
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
.changeset/cold-frogs-join.md (1)
5-5
: Typographical error in the description. Consider correcting "recieving" to "receiving".
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.
Nice work
packages/contracts-bedrock/test/periphery/faucet/authmodules/AdminFaucetAuthModule.t.sol
Outdated
Show resolved
Hide resolved
b5d433f
to
060b6f5
Compare
Semgrep found 2 Variable |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10621 +/- ##
============================================
- Coverage 55.13% 39.26% -15.88%
============================================
Files 37 27 -10
Lines 2900 1821 -1079
Branches 415 415
============================================
- Hits 1599 715 -884
+ Misses 1269 1106 -163
+ Partials 32 0 -32
Flags with carried forward coverage won't be shown. Click here to find out more. |
…imism#10621) * adding bridging to the faucet drip call * updating the logic based on suggesstions * adding changeset * fixing ci issue * update auth module tests * final fix * lint fix * update snapshots * update changeset * change to patch --------- Co-authored-by: Tarun Khasnavis <tarunkhasnavis@Taruns-MacBook-Pro.local> Co-authored-by: tre <tremarkley@gmail.com>
This PR aims to update our Faucet contract design by modifying the
drip
function._bridge
which is expected to be an address to the L1Standard bridge for a given OP Chain.L1StandardBridge
and utilize thedepositETHTo
function within the drip function. the specified bridge address is the target contract for the function.address(0)
). The backend will supply a null address as the bridge param for this caseMore context: https://www.notion.so/oplabs/Superchain-Faucet-in-Dev-Console-dea77a1062b24b40abc0f0752c111dc1?pvs=4#7a7014cac2b34560893115ebe4e2e6a2