Files
proxmox/docs/04-configuration/THIRDWEB_ACCOUNT_ABSTRACTION_SUPPORT.md
defiQUG dbd517b279 Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains
- Omit embedded publish git dirs and empty placeholders from index

Made-with: Cursor
2026-04-12 06:12:20 -07:00

70 lines
2.2 KiB
Markdown

# Thirdweb Account Abstraction Support
**Purpose:** Define the repo's concrete Thirdweb execution policy for `ERC-4337`, `EIP-7702`, gas sponsorship, and x402 across the chains relevant to GRU and Chain 138.
**Machine-readable source:** [`../../config/thirdweb-account-abstraction-support.json`](../../config/thirdweb-account-abstraction-support.json)
**Verifier:** [`../../scripts/verify/check-thirdweb-account-abstraction-support.sh`](../../scripts/verify/check-thirdweb-account-abstraction-support.sh)
---
## Bottom line
The repo now treats Thirdweb account abstraction as a **dual-mode** surface:
- `ERC-4337` is the required compatibility baseline
- `EIP-7702` is the preferred execution mode where the chain and Thirdweb stack support it
- `x402` remains a `7702`-specific settlement rail, not a generic `4337` fallback
For **Chain 138** specifically:
- `ERC-4337` remains the current default execution mode in the policy matrix
- `EIP-7702` is tracked as supported target capability
- `x402` is enabled only through the GRU V2 USD payment tokens that expose `ERC-2612` and `ERC-3009`
---
## Chain 138 payment tokens
The Chain 138 x402-compatible payment tokens are:
- `cUSDT V2``0x9FBfab33882Efe0038DAa608185718b772EE5660`
- `cUSDC V2``0x219522c60e83dEe01FC5b0329d6fA8fD84b9D13d`
These contracts are live and expose:
- `permit` / `ERC-2612`
- `transferWithAuthorization`
- `receiveWithAuthorization`
- `ERC-5267` domain introspection through the V2 token base
See also:
- [CHAIN138_X402_TOKEN_SUPPORT.md](CHAIN138_X402_TOKEN_SUPPORT.md)
- [GRU_V2_CHAIN138_READINESS.md](GRU_V2_CHAIN138_READINESS.md)
---
## Verify
Run:
```bash
bash scripts/verify/check-thirdweb-account-abstraction-support.sh
```
Optional JSON output:
```bash
bash scripts/verify/check-thirdweb-account-abstraction-support.sh --json
```
This verifies:
- dual-mode account abstraction is enabled in the matrix
- Chain 138 explicitly lists both `ERC-4337` and `EIP-7702`
- Chain 138 keeps `ERC-4337` as the current default until full `7702` confirmation
- Chain 138 x402 stays pinned to `eip7702`
- at least one Chain 138 payment token is listed as x402-compatible
- Ethereum Mainnet is also represented as dual-mode