7 Commits

Author SHA1 Message Date
Carson Roscoe
6662507403
fix: e2e approve bug (#1803)
* 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>
2026-03-27 15:27:46 -07:00
phdargen
d8e9f3f8ab
Simulate permit2 (#1579)
* sim permit2

* add verifyTypedData failure fallback for deployed smart wallets

* add go
2026-03-17 00:16:12 +09:00
Carson Roscoe
1750ab3a08
fix: e2e mainnet testing (#1585)
* fix: e2e mainnet testing

* fix: lock
2026-03-13 09:09:25 -07:00
Carson Roscoe
8b731cb590
feat: improve permit2 and extensions sdks (#1487)
* feat: improve typescript implementation

* feat: improve go implementation

* feat: update examples

* chore: update e2e clients

* feat: improve typescript sdk for permit2 & gas sponsoring extensions

* feat: improve go sdk for permit2 & gas sponsoring extensions

* feat: update e2e tests accordingly

* fix: lock/format/lint

* chore: added changelog fragments

* fix: x402.org usage of permit2 extensions

* feat: pr feedback
2026-03-09 17:51:52 -07:00
phdargen
f4313370c2
Add assetTransferMethod and supportsEip2612 flag to defaultAssets (#1359)
* set assetTransferMethod for defaultAsset

* mock token fix

* use moneyparser

* py changes

* go changes

* fix get_asset_info

* add SupportsEip2612 flag

* add changelogs

* fix tests
2026-03-05 11:07:18 +09:00
Carson Roscoe
018181b14a
feat: eip2612 gas sponsorship extension implementations (#1208)
* feat: typescript implementation

* feat: typescript unit & integration tests

* feat: go implementation

* feat: go unit & integration tests

* feat: typescript example

* feat: update e2e tests for eip2612 extension

* feat: added go & typescript changelog fragments

* fix: format
2026-02-18 11:32:46 -05:00
A. McDermott
8a39eec4cc
feat: Add Permit2 support to resource server SDK (#1041)
* 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
2026-01-27 19:17:20 -05:00