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

refactor: implement outbound and inbound warp route amount transforms #4729

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

yorhodes
Copy link
Member

@yorhodes yorhodes commented Oct 22, 2024

Description

  • implements _outbound and _inbound internal amount transforms for use in scaling warp routes
  • simplify HypNativeScaled implementation

Backward compatibility

Yes

Testing

Existing HypNative Scaled Unit Tests

Copy link

changeset-bot bot commented Oct 22, 2024

🦋 Changeset detected

Latest commit: 21b0b24

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@hyperlane-xyz/core Patch
@hyperlane-xyz/helloworld Patch
@hyperlane-xyz/sdk Patch
@hyperlane-xyz/infra Patch
@hyperlane-xyz/cli Patch
@hyperlane-xyz/widgets Patch
@hyperlane-xyz/ccip-server Patch
@hyperlane-xyz/github-proxy Patch
@hyperlane-xyz/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.75%. Comparing base (2934195) to head (21b0b24).
Report is 1 commits behind head on audit-q3-2024.

Additional details and impacted files
@@                Coverage Diff                @@
##           audit-q3-2024    #4729      +/-   ##
=================================================
+ Coverage          73.74%   73.75%   +0.01%     
=================================================
  Files                100      100              
  Lines               1436     1429       -7     
  Branches             187      185       -2     
=================================================
- Hits                1059     1054       -5     
+ Misses               356      354       -2     
  Partials              21       21              
Components Coverage Δ
core 84.61% <ø> (ø)
hooks 75.71% <ø> (ø)
isms 77.58% <ø> (ø)
token 89.54% <100.00%> (+0.79%) ⬆️
middlewares 77.39% <ø> (ø)

@yorhodes yorhodes requested a review from nambrot October 22, 2024 20:14
@yorhodes yorhodes changed the title refactor: implement outbound and inbound amount transforms refactor: implement outbound and inbound warp route amount transforms Oct 22, 2024
Copy link
Contributor

@nambrot nambrot left a comment

Choose a reason for hiding this comment

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

Would highly recommend the rename of the internal functions, otherwise lgtm

solidity/contracts/token/libs/TokenRouter.sol Show resolved Hide resolved
solidity/contracts/token/libs/TokenRouter.sol Outdated Show resolved Hide resolved
@yorhodes yorhodes added the audit label Oct 22, 2024
@yorhodes yorhodes changed the base branch from main to audit-q3-2024 October 22, 2024 20:27
@yorhodes yorhodes removed the audit label Oct 22, 2024
@yorhodes yorhodes enabled auto-merge (squash) October 22, 2024 20:31
@yorhodes yorhodes merged commit 3e2f9e3 into audit-q3-2024 Oct 22, 2024
30 checks passed
@yorhodes yorhodes deleted the warp-route-scale branch October 22, 2024 20:45
yorhodes added a commit that referenced this pull request Nov 6, 2024
…#4729)

### Description

- implements `_outbound` and `_inbound` internal amount transforms for
use in scaling warp routes
- simplify `HypNativeScaled` implementation

### Backward compatibility

Yes

### Testing

Existing HypNative Scaled Unit Tests
yorhodes added a commit that referenced this pull request Nov 6, 2024
…#4729)

### Description

- implements `_outbound` and `_inbound` internal amount transforms for
use in scaling warp routes
- simplify `HypNativeScaled` implementation

### Backward compatibility

Yes

### Testing

Existing HypNative Scaled Unit Tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants