synapsecns / sanguine

Synapse Monorepo
MIT License
43 stars 31 forks source link

2024-09-26 FE Release #3155

Closed Defi-Moses closed 2 months ago

Defi-Moses commented 2 months ago

7f458db9c8cfe7a877f6c0c9103ea70e7c053313: synapse-interface preview link

Summary by CodeRabbit

Summary by CodeRabbit

coderabbitai[bot] commented 2 months ago

Walkthrough

This pull request introduces significant updates to the @synapsecns/contracts-rfq package, including the FastBridgeV2 contract, which enhances token bridging capabilities across blockchain networks. It adds various functions for managing bridge transactions, such as creating requests, relaying transactions, submitting proofs, claiming funds, and handling disputes and refunds. Additionally, the changelog and package.json files are updated to reflect version changes and dependency updates, while a comprehensive test suite validates the functionalities of the FastBridgeV2 contract.

Changes

File(s) Change Summary
packages/contracts-rfq/contracts/FastBridgeV2.sol Implemented the FastBridgeV2 contract with functions for token transfer, bridge transaction management, proof submission, claiming, disputes, and refunds.
packages/contracts-rfq/test/FastBridgeV2.Dst.t.sol Introduced a test suite for the FastBridgeV2 contract, covering event declarations, setup, bridging logic, and various test cases for functionality validation.
packages/contracts-rfq/CHANGELOG.md, packages/contracts-rfq/package.json Updated changelog and package.json to reflect version changes and dependency updates.
packages/synapse-interface/CHANGELOG.md, packages/synapse-interface/package.json Updated changelog and package.json for @synapsecns/synapse-interface, including new features and dependency modifications.
packages/synapse-interface/messages/*.json Added new strings for localization, including "Confirm new quote" and "Transaction refunded, funds returned" in multiple languages.
packages/synapse-interface/slices/_transactions/reducer.ts Updated _TransactionDetails interface to include routerAddress and added a new status for refunded transactions.
packages/synapse-interface/utils/hooks/use_TransactionsListener.ts Modified use_TransactionsListener to include routerAddress in the returned transaction object.

Possibly related PRs

Suggested reviewers

Poem

🐰 In the land of bridges, we hop and we play,
With tokens and contracts, new features today!
From relaying to claiming, our paths intertwine,
Hopping through code, making everything fine.
So here’s to our changes, let’s leap with delight,
In the fields of blockchain, our future is bright! 🌟✨

[!WARNING]

Review ran into problems

🔥 Problems Error running LanguageTool: LanguageTool error: Unknown error

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 - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@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 using 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. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying sanguine-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: ebf102c
Status: ✅  Deploy successful!
Preview URL: https://44a9f189.sanguine-fe.pages.dev
Branch Preview URL: https://master.sanguine-fe.pages.dev

View logs

codecov[bot] commented 2 months ago

Bundle Report

Changes will decrease total bundle size by 360.87kB (-1.0%) :arrow_down:. This is within the configured threshold :white_check_mark:

Detailed changes | Bundle name | Size | Change | | ----------- | ---- | ------ | | sdk-router-@synapsecns/sdk-router-esm* | 254.65kB | 313 bytes (-0.12%) :arrow_down: | | sdk-router-@synapsecns/sdk-router-cjs* | 117.24kB | 8 bytes (-0.01%) :arrow_down: | | explorer-ui-server-cjs* | 866.07kB | 283 bytes (0.03%) :arrow_up: | | explorer-ui-client-array-push | 2.31MB | 750 bytes (0.03%) :arrow_up: | | synapse-interface-client-array-push | 7.28MB | 221.07kB (-2.95%) :arrow_down: | | synapse-interface-server-cjs* | 1.49MB | 121.28kB (-7.51%) :arrow_down: | | synapse-interface-edge-server-array-push* | 131 bytes | 48 bytes (57.83%) :arrow_up: | | widget-cjs-esm* | 273.3kB | 8.62kB (-3.06%) :arrow_down: | | widget-esm-cjs* | 273.3kB | 10.65kB (-3.75%) :arrow_down: |

ℹ️ *Bundle size includes cached data from a previous commit

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 87.62887% with 12 lines in your changes missing coverage. Please review.

Project coverage is 41.10994%. Comparing base (0357100) to head (2709e85). Report is 29 commits behind head on fe-release.

Files with missing lines Patch % Lines
core/commandline/shell.go 0.00000% 5 Missing :warning:
contrib/opbot/botmd/commands.go 0.00000% 4 Missing :warning:
...vices/omnirpc/modules/harmonyproxy/harmonyproxy.go 0.00000% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## fe-release #3155 +/- ## ==================================================== + Coverage 38.22166% 41.10994% +2.88828% ==================================================== Files 423 459 +36 Lines 24371 25641 +1270 Branches 119 342 +223 ==================================================== + Hits 9315 10541 +1226 - Misses 14317 14357 +40 - Partials 739 743 +4 ``` | [Flag](https://app.codecov.io/gh/synapsecns/sanguine/pull/3155/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=synapsecns) | Coverage Δ | | |---|---|---| | [packages](https://app.codecov.io/gh/synapsecns/sanguine/pull/3155/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=synapsecns) | `90.96267% <ø> (ø)` | | | [solidity](https://app.codecov.io/gh/synapsecns/sanguine/pull/3155/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=synapsecns) | `96.91977% <100.00000%> (+7.60679%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=synapsecns#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.