Skip to content

feat(sdk): add function to withdraw erc20 tokens #162

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 11 commits into
base: main
Choose a base branch
from

Conversation

tomip01
Copy link
Contributor

@tomip01 tomip01 commented Jul 11, 2025

Motivation

We want to add support for the withdraw of erc20 tokens in the sdk.

Description

  • Added the withdraw_erc20 and the claim_erc20withdraw function in sdk/src/l2/withdraw.rs to handle ERC20 token withdrawals.
  • Introduced L2_WITHDRAW_SIGNATURE_ERC20 and CLAIM_WITHDRAWAL_ERC20_SIGNATURE in sdk/src/l2/constants.rs to define the signature for ERC20 withdrawal calldata encoding.

Closes #157

@tomip01 tomip01 self-assigned this Jul 11, 2025
@tomip01 tomip01 requested a review from a team as a code owner July 11, 2025 14:38
@tomip01 tomip01 added the enhancement New feature or request label Jul 11, 2025
@tomip01 tomip01 marked this pull request as draft July 11, 2025 14:48
@tomip01 tomip01 marked this pull request as ready for review July 11, 2025 14:59
@Mechanix97 Mechanix97 linked an issue Jul 14, 2025 that may be closed by this pull request
Base automatically changed from feat/cli/support-erc20-deposits to main July 15, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ERC20 withdrawals in rex-sdk
3 participants