Skip to content

Add support for PERMIT2_TRANSFER_FROM_BATCH #106

@Elnaril

Description

@Elnaril

Issue:

This SDK does not support the Universal Router function PERMIT2_TRANSFER_FROM_BATCH yet.

Objective:

Add support for PERMIT2_TRANSFER_FROM_BATCH.

How:

  • Add encoding and decoding for this function.
  • Add docstrings to document the exposed API
  • Add unit tests:
    • encode and decode a call to this function.
    • find an actual and successful transaction on Ethereum mainnet and decode it
  • Add (or modify) an integration test using anvil to demonstrate the implementation works.

Advice:

Stay consistent with the current code style and spirit.
Make sure to stay consistent with the existing unit and integration tests.
100% of new code must be covered by unit tests.
Integration tests must use Foundry Anvil and keep the structure of existing ones.
All tox and CI tests must pass for the PR to be considered.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions