Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 978 Bytes

File metadata and controls

22 lines (17 loc) · 978 Bytes
registry-sdk minor
registry-backend minor

Add withdrawal endpoints for users to withdraw tokens from their agent smart accounts

registry-backend:

  • Add POST /user/:appId/request-withdraw endpoint to prepare unsigned UserOperations for withdrawing tokens
  • Add POST /user/:appId/complete-withdraw endpoint to submit signed UserOperations and execute withdrawals
  • Add SPONSOR_WITHDRAW_GAS env var to optionally sponsor gas fees via ZeroDev paymaster
  • Add Alchemy utility for fetching token balances with metadata
  • Refactor chainConfig into utils with network-specific bundler URL support
  • Add integration tests for withdrawal flow

registry-sdk:

  • Add POST /user/:appId/request-withdraw endpoint schema
  • Add POST /user/:appId/complete-withdraw endpoint schema
  • Add withdraw types: Asset, RequestWithdrawRequest, RequestWithdrawResponse, SignedWithdrawal, CompleteWithdrawRequest, CompleteWithdrawResponse
  • Regenerate RTK clients