Skip to content

feature: Reimplement lib transfers and an helper to unwrap token #55

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

Open
wants to merge 9 commits into
base: mainnet
Choose a base branch
from

Conversation

huyhuynh3103
Copy link
Collaborator

@huyhuynh3103 huyhuynh3103 commented Mar 25, 2025

This pull request includes several significant changes to the repository, primarily focusing on the removal of various GitHub Actions workflows and the addition of new Solidity libraries and helper functions for token transfers. Below is a summary of the most important changes:

Removal of GitHub Actions Workflows:

Solidity Code Enhancements:

These changes aim to streamline the CI/CD process by removing redundant workflows and enhance the Solidity codebase with new functionalities for token transfers.

Checklist

  • I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works

@huyhuynh3103 huyhuynh3103 requested a review from TuDo1403 March 25, 2025 07:00
Comment on lines 19 to 20
bytes4 selector = IERC20.transferFrom.selector;
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(selector, from, to, value));
Copy link
Collaborator

Choose a reason for hiding this comment

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

use standard logic for handling ERC20 transfer

Comment on lines 19 to 20
bytes4 selector = IERC20.transfer.selector;
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(selector, to, value));
Copy link
Collaborator

Choose a reason for hiding this comment

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

^

Comment on lines 19 to 20
bytes4 selector = IERC20.transfer.selector;
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(selector, to, value));
Copy link
Collaborator

Choose a reason for hiding this comment

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

use encode call

@TuDo1403 TuDo1403 requested a review from Copilot March 31, 2025 04:55
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request streamlines CI/CD by removing redundant GitHub Actions workflows and updates the Solidity development configuration while introducing new code for enhanced token transfer functionalities.

  • Updated Solidity compiler settings and enabled optimizations in foundry.toml
  • Changed the Foundry toolchain version used in tests from nightly to stable

Reviewed Changes

Copilot reviewed 2 out of 11 changed files in this pull request and generated no comments.

File Description
foundry.toml Updated compiler version, EVM target, and optimization settings
.github/workflows/test.yml Changed the Foundry toolchain version from nightly to stable
Files not reviewed (9)
  • .github/workflows/create-PR-deploy-to-release.yml: Language not supported
  • .github/workflows/create-PR-implement-to-feature.yml: Language not supported
  • .github/workflows/create-PR-release-to-feature.yml: Language not supported
  • .github/workflows/create-PR-release-to-network.yml: Language not supported
  • src/transfers/LibNativeTransfer.sol: Language not supported
  • src/transfers/LibRONTransferHelperExtended.sol: Language not supported
  • src/transfers/LibTransferFromHelper.sol: Language not supported
  • src/transfers/LibTransferHelper.sol: Language not supported
  • src/transfers/helpers/UnwrapTokenAndTransferHelpers.sol: Language not supported
Comments suppressed due to low confidence (2)

foundry.toml:10

  • Confirm that the updated EVM version 'cancun' is fully supported by all project dependencies and testing setups, as this major update may have compatibility implications.
evm_version = 'cancun'

.github/workflows/test.yml:35

  • Validate that switching from the nightly to a stable Foundry toolchain does not inadvertently disable required experimental features or affect test behavior.
version: stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants