Skip to content

Conversation

@Bijan-Massoumi
Copy link
Contributor

Summary & Motivation

Adds two new Gas Station examples and introduces reimbursable execution support:

  • swapUSDCForETH.ts: USDC→WETH swap via Uniswap using approveThenExecute to combine ERC20 + Permit2 approvals into 1 tx (2 total instead of 3)
  • transferUSDCReimbursable.ts: EOA pays gas in USDC instead of paymaster covering costs
  • Package: Added reimbursableContract config, executeWithReimbursement(), and signSessionForUSDCTransfer() to @turnkey/gas-station

How I Tested These Changes

Ran both examples on Base mainnet. Swap executed 2 transactions successfully. Reimbursable transfer deducted USDC for gas and refunded excess.

Did you add a changeset?

yes

…luding session signature handling and updated contract interactions. Add example scripts for USDC transfers and swaps using the Universal Router. Update package dependencies for Uniswap SDKs and OpenZeppelin contracts.
…ermit2 and Uniswap Universal Router. Enhance documentation with detailed usage instructions and environment variable requirements. Streamline code for clarity and maintainability.
…ing new contract addresses and EIP-712 field name updates. Refactor code for improved readability and maintainability across various files, and enhance documentation to reflect these changes.
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​uniswap/​sdk-core@​6.1.1981007487100
Added@​uniswap/​universal-router-sdk@​3.4.0991008196100

View full report

@Bijan-Massoumi Bijan-Massoumi changed the title Batch feat: add USDC swap + reimbursable gas station examples Nov 26, 2025
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a600f14:

Sandbox Source
@turnkey/example-react-components Configuration

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.

3 participants