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

Release/2024 04 11 #2487

Merged
merged 80 commits into from
Apr 11, 2024
Merged

Release/2024 04 11 #2487

merged 80 commits into from
Apr 11, 2024

Conversation

ChiTimesChi
Copy link
Collaborator

@ChiTimesChi ChiTimesChi commented Apr 11, 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]

41ea2f1b900fa6d0db51cf85c5449869f6c1e7a7: synapse-interface preview link
41ea2f1b900fa6d0db51cf85c5449869f6c1e7a7: explorer-ui preview link

aureliusbtc and others added 30 commits March 29, 2024 19:54
 - @synapsecns/rest-api@1.0.59
 - @synapsecns/sdk-router@0.4.1
 - @synapsecns/synapse-interface@0.15.3
 - @synapsecns/widget@0.1.13
 - @synapsecns/rest-api@1.0.60
 - @synapsecns/sdk-router@0.4.2
 - @synapsecns/synapse-interface@0.15.4
 - @synapsecns/widget@0.1.14
 - @synapsecns/synapse-interface@0.15.5
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
* Deploy RFQ to Base

* Chore: order chains alphabetically

---------

Co-authored-by: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com>
 - FastBridge@0.2.0
* feat(services/rfq): use one submitter

* rfq fix

---------

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
* Feat: set DefaultGasBumpPercentage to 10

* Feat: bump fee cap in addition to tip cap

* Feat: traces

* Fix: tests

* Fix: test
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
* experiment w/ more shallow clones

* remove submodule clones from go change detection

---------

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
* add aurelis decoder

* doublequote

* handle type 0 transactions

* ignore txdecoder

---------

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com>
 - @synapsecns/synapse-interface@0.15.6
* Bump nvmrc to 18.17.0

* Adds vercel pkg

* Upgrades next-on-pages
* Test autobump from 0.0.4
 - @synapsecns/contracts-core@1.0.31
 - docs@0.0.5
 - @synapsecns/explorer-ui@0.1.42
 - @synapsecns/rest-api@1.0.61
 - @synapsecns/sdk-router@0.4.3
 - @synapsecns/synapse-interface@0.15.7
 - @synapsecns/widget@0.1.15
…#2439)

* Add utils for getting current gas pricing info

* Add "fill gas price automatically" option

* Update recommended values

* Don't bother copying ABI in the scripts

* Copy deployed contract ABI in the post-script routine

* Add ETH Sepolia to config for testing

* Add example of a saved deployment artifact

* Add setup instructions to README.md

* Isolate "save new deployment" routine, add standalone helper

* Add standalone util for verifying contracts

* Redact sensitive keys in logCommand function

* Add standalone util for verifying proxy on Etherscan

* Modify example script

* Add usage docs

* Apply Rabbit suggestions

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix: lint

* Fix some smol errors

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Defi-Moses and others added 9 commits April 9, 2024 14:45
* add careers link throughout the page

* add EventLog for rfq

* adding RFQ sql model

* adding flattened RFQ contracts

* all types for RFQ

* adding RFQ request and updating naming

* small nits around event types

* adding the parser

* adding parser and build

* finishing up the fetcher

* testing suite all configured

* updating write functions to the db

* nomenclature cleanup

* all tests passing but backfill and working on logging here

* all tests passing

* fixing all linting errors

* typo

* maintenence

* revert resolver test changes not needed
* Fix: use separate gas thresh for origin and destination

* Feat: add test for HasSufficientGas
 - contracts-communication@1.1.3
 - @synapsecns/synapse-interface@0.16.3
Copy link
Contributor

coderabbitai bot commented Apr 11, 2024

Important

Auto Review Skipped

More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.

186 files out of 290 files are above the max files limit of 50. Please upgrade to Pro plan to get higher limits.


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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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

Deploying sanguine-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: c5a9c25
Status: ✅  Deploy successful!
Preview URL: https://b169f1bd.sanguine-fe.pages.dev
Branch Preview URL: https://release-2024-04-11.sanguine-fe.pages.dev

View logs

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 69.40639% with 134 lines in your changes are missing coverage. Please review.

Project coverage is 47.40576%. Comparing base (3710485) to head (c5a9c25).

Files Patch % Lines
...script/config/legacy/ConfigureLegacyPingPong.s.sol 0.00000% 33 Missing ⚠️
ethergo/submitter/submitter.go 86.66667% 11 Missing and 7 partials ⚠️
...ion/script/config/legacy/ConfigureMessageBus.s.sol 0.00000% 15 Missing ⚠️
...rib/git-changes-action/detector/module/detector.go 63.63636% 8 Missing and 4 partials ⚠️
...-communication/contracts/legacy/LegacyReceiver.sol 50.00000% 5 Missing and 5 partials ⚠️
ethergo/submitter/chain_queue.go 33.33333% 8 Missing ⚠️
ethergo/submitter/config/config.go 0.00000% 8 Missing ⚠️
ethergo/listener/listener.go 78.12500% 5 Missing and 2 partials ⚠️
...-communication/contracts/legacy/LegacyPingPong.sol 58.82353% 6 Missing and 1 partial ⚠️
...rib/git-changes-action/detector/module/depgraph.go 86.95652% 3 Missing ⚠️
... and 6 more
Additional details and impacted files
@@                 Coverage Diff                  @@
##           fe-release       #2487         +/-   ##
====================================================
+ Coverage    46.88720%   47.40576%   +0.51856%     
====================================================
  Files             383         435         +52     
  Lines           29202       30587       +1385     
  Branches           83         304        +221     
====================================================
+ Hits            13692       14500        +808     
- Misses          14049       14612        +563     
- Partials         1461        1475         +14     
Flag Coverage Δ
packages 90.52734% <ø> (ø)
solidity 56.32479% <54.60526%> (?)

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.

Comment on lines +59 to +80
function getPayloadFromMemory(bytes memory versionedPayload) internal view returns (bytes memory payload) {
if (versionedPayload.length < VERSION_LENGTH) {
revert VersionedPayload__TooShort(versionedPayload);
}
// Figure how many bytes to copy and allocate the memory for the extracted payload.
uint256 toCopy;
unchecked {
toCopy = versionedPayload.length - VERSION_LENGTH;
}
payload = new bytes(toCopy);
// Use identity precompile (0x04) to copy the payload. Unlike MCOPY, this is available on all EVM chains.
bool res;
assembly {
// We add 0x20 to skip the length of the bytes array.
// We add 0x02 to skip the 2 bytes reserved for the version.
// Copy the payload to the previously allocated memory.
res := staticcall(gas(), 0x04, add(versionedPayload, 0x22), toCopy, add(payload, 0x20), toCopy)
}
if (!res) {
revert VersionedPayload__PrecompileFailed();
}
}

Check warning

Code scanning / Slither

Assembly usage Warning

Comment on lines +22 to +30
function getVersion(bytes calldata versionedPayload) internal pure returns (uint16 version) {
if (versionedPayload.length < VERSION_LENGTH) {
revert VersionedPayload__TooShort(versionedPayload);
}
assembly {
// We are only interested in the highest 16 bits of the loaded full 32 bytes word.
version := shr(240, calldataload(versionedPayload.offset))
}
}

Check warning

Code scanning / Slither

Assembly usage Warning

Comment on lines +44 to +53
function getVersionFromMemory(bytes memory versionedPayload) internal pure returns (uint16 version) {
if (versionedPayload.length < VERSION_LENGTH) {
revert VersionedPayload__TooShort(versionedPayload);
}
assembly {
// We are only interested in the highest 16 bits of the loaded full 32 bytes word.
// We add 0x20 to skip the length of the bytes array.
version := shr(240, mload(add(versionedPayload, 0x20)))
}
}

Check warning

Code scanning / Slither

Assembly usage Warning


/// @notice Get the version of the Interchain DataBase.
// solhint-disable-next-line func-name-mixedcase
function DB_VERSION() external pure returns (uint16);

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

Function IInterchainDB.DB_VERSION() is not in mixedCase
Comment on lines +64 to +79
function _sendMessage(uint256 dstChainId, uint256 messageFee, uint256 gasLimit, bytes memory message) internal {
bytes32 dstRemote = trustedRemotes[dstChainId];
if (dstRemote == 0) {
revert LegacyReceiver__TrustedRemoteNotSet(dstChainId);
}
if (address(this).balance < messageFee) {
revert LegacyReceiver__BalanceTooLow(address(this).balance, messageFee);
}
bytes memory options = LegacyOptionsLib.encodeLegacyOptions(gasLimit);
IMessageBus(messageBus).sendMessage{value: messageFee}({
receiver: dstRemote,
dstChainId: dstChainId,
message: message,
options: options
});
}

Check failure

Code scanning / Slither

Functions that send Ether to arbitrary destinations High


constructor(address owner_) Ownable(owner_) {}

function setMessageBus(address messageBus_) external onlyOwner {

Check notice

Code scanning / Slither

Missing zero address validation Low

Comment on lines +69 to +78
function _sendPingPongMessage(uint256 dstChainId, uint256 counter, bool lowBalanceRevert) internal {
uint256 pingFee = getPingFee(dstChainId);
if (address(this).balance < pingFee && !lowBalanceRevert) {
emit PingDisrupted(counter);
return;
}
bytes memory message = abi.encode(counter);
_sendMessage({dstChainId: dstChainId, messageFee: pingFee, gasLimit: gasLimit, message: message});
emit PingSent(counter);
}
@ChiTimesChi ChiTimesChi merged commit 966f613 into fe-release Apr 11, 2024
62 of 64 checks passed
@ChiTimesChi ChiTimesChi deleted the release/2024-04-11 branch April 11, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-reviewers go Pull requests that update Go code M-ci Module: CI M-contracts Module: Contracts M-explorer-ui M-synapse-interface size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants