* fix: e2e approve bug
* feat: remove new docstring addition
* fix: update Next.js e2e server to /exact/evm/... path structure
The `feat: add upto to typescript sdk` commit reverted proxy.ts and
test.config.json from the improved `/api/exact/evm/...` path structure
back to old `protected-*` paths, without recreating the deleted route
files. Fix this properly by:
- Update proxy.ts route keys and config.matcher to /exact/evm/... paths
- Update test.config.json to /exact/evm/... paths, preserving
coldstart: true on the two permit2 endpoints
- Add missing proxy route files at new paths:
exact/evm/eip3009/proxy, exact/evm/permit2/proxy,
exact/evm/permit2-eip2612GasSponsoring/proxy,
exact/evm/permit2-erc20ApprovalGasSponsoring/proxy,
exact/svm/proxy, exact/stellar/proxy, exact/aptos/proxy
Note: route files are in directories named "proxy" which matches a
root .gitignore pattern, so they are tracked with git add -f.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: flatten non-EVM chain routes to /exact/{chain} base path
SVM, Aptos, and Stellar each have a single transfer mechanism with no
variants, so the /proxy sub-path is unnecessary. Move them to the base
level /exact/{chain} pattern, matching EVM's approach of only adding
sub-paths when there are multiple mechanisms or extensions to test.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat: pr cleanup and review
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(evm): add Permit2 support to resource server SDK
- Document assetTransferMethod in DEFAULT_ASSET.md with Permit2 usage examples
- Add unit tests for custom token registration with assetTransferMethod
- Add /protected-permit2 endpoint to express E2E server
- Create permit2-approval.ts script for managing Permit2 approvals in E2E tests
* Set up integration tests to set up and tear down permit2 approval
* Formatting and cleanup
* Update contracts and ABIs
* fix(evm): fix Permit2 settlement and simplify E2E approval flow
- Fix ABI mismatch in settle function (4 args, not 5)
- Add proper type assertions for witness.extra field
- Remove Permit2 approval revocation from E2E tests (unnecessary)
- Simplify permit2-approval.ts to only check and approve
- Improve error handling in facilitator settlement