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

Deploy RFQ FastBridge on BNB chain #2873

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Deploy RFQ FastBridge on BNB chain #2873

merged 1 commit into from
Jul 16, 2024

Conversation

aureliusbtc
Copy link
Contributor

@aureliusbtc aureliusbtc commented Jul 15, 2024

Description
A clear and concise description of the features you're adding in this pull request.

Additional context
Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

Summary by CodeRabbit

  • New Features
    • Added configuration support for BNB chain deployments.

@aureliusbtc aureliusbtc requested a review from ChiTimesChi as a code owner July 15, 2024 15:47
Copy link
Contributor

coderabbitai bot commented Jul 15, 2024

Walkthrough

The recent updates focus on integrating support for the Binance Smart Chain (BNB) within the contracts-rfq package. This includes specifying the BNB chain ID, providing a JSON configuration for a BNB contract deployment, and updating the foundry.toml file with BNB RPC and verifier settings.

Changes

File Summary
.../contracts-rfq/deployments/bnb/.chainId Introduces the BNB chain ID with the value 56.
.../contracts-rfq/deployments/bnb/FastBridge.json Adds a JSON file detailing the address and constructor arguments for a BNB contract deployment.
.../contracts-rfq/foundry.toml Adds BNB RPC and verifier configurations under the [foundry] and [etherscan] sections.

Poem

In the forest of code, where binaries gleam,
A bridge to Binance, like a coder's dream.
With RPC and chains set true,
FastBridge awaits, for a world anew.
🐰✨


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

  • Added packages/contracts-rfq/deployments/bnb/.chainId to specify BNB chain ID (56)
  • Added packages/contracts-rfq/deployments/bnb/FastBridge.json with deployment details for RFQ FastBridge on BNB
  • Updated packages/contracts-rfq/foundry.toml to include BNB RPC endpoints and Etherscan verification keys/URLs

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

{
"address": "0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E",
"constructorArgs": "0x000000000000000000000000bd88862fcc17de436f7bd17276c537acadda9a67"
}
Copy link

Choose a reason for hiding this comment

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

Style: Add a newline at the end of the file for better formatting.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 73863ab and cd8b4ea.

Files selected for processing (3)
  • packages/contracts-rfq/deployments/bnb/.chainId (1 hunks)
  • packages/contracts-rfq/deployments/bnb/FastBridge.json (1 hunks)
  • packages/contracts-rfq/foundry.toml (1 hunks)
Files skipped from review due to trivial changes (2)
  • packages/contracts-rfq/deployments/bnb/.chainId
  • packages/contracts-rfq/deployments/bnb/FastBridge.json
Additional comments not posted (2)
packages/contracts-rfq/foundry.toml (2)

25-25: BNB RPC endpoint addition looks good.

The addition of the BNB RPC endpoint is syntactically correct and appropriate for enabling interactions with the Binance Smart Chain.


33-33: BNB verifier configuration addition looks good.

The addition of the BNB verifier configuration is syntactically correct and appropriate for enabling contract verification on the Binance Smart Chain.

Copy link

Deploying sanguine-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd8b4ea
Status: ✅  Deploy successful!
Preview URL: https://0218c1cb.sanguine-fe.pages.dev
Branch Preview URL: https://rfq-bnb.sanguine-fe.pages.dev

View logs

Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.72299%. Comparing base (73863ab) to head (cd8b4ea).

Additional details and impacted files
@@              Coverage Diff              @@
##              master       #2873   +/-   ##
=============================================
  Coverage   23.72299%   23.72299%           
=============================================
  Files            683         683           
  Lines          50959       50959           
  Branches         119         119           
=============================================
  Hits           12089       12089           
  Misses         37547       37547           
  Partials        1323        1323           
Flag Coverage Δ
packages 90.47619% <ø> (ø)
solidity 88.13559% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codecov bot commented Jul 15, 2024

Bundle Report

Changes will decrease total bundle size by 11.08MB ⬇️

Bundle name Size Change
widget-esm-cjs 275.25kB 275.25kB ⬆️
synapse-interface-server-cjs 1.37MB 0 bytes
sdk-router-@synapsecns/sdk-router-esm 252.08kB 0 bytes
sdk-router-@synapsecns/sdk-router-cjs 116.91kB 404.76kB ⬇️
synapse-interface-edge-server-array-push 83 bytes 0 bytes
explorer-ui-server-cjs (removed) 894.5kB ⬇️
explorer-ui-edge-server-array-push (removed) 83 bytes ⬇️
explorer-ui-client-array-push (removed) 2.34MB ⬇️
synapse-interface-client-array-push (removed) 7.44MB ⬇️
widget-cjs-esm (removed) 273.3kB ⬇️

@trajan0x trajan0x merged commit c0a92f1 into master Jul 16, 2024
51 checks passed
@trajan0x trajan0x deleted the rfq/bnb branch July 16, 2024 15:03
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