You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Complete D3 agent-skill demo with a public Sepolia receipt #497
Track the remaining public-testnet acceptance evidence for the D3 agent integration.
2026-11-27 correction: the earlier conversion text called this an unrequested skill with no users. That was inaccurate: this is the D3 grant skeleton, and Gordon's August dogfood results are recorded on #478. Dogfood is trial use, not a claim of production trading adoption.
Implementation: #498 restores the skeleton and supplies a working Sepolia v2 demo. The existing native-ETH trading path succeeds on a local Sepolia fork with a mined status-1 receipt and a positive USDC balance delta. v3/v4 Sepolia library enablement is not a prerequisite for that v2 route.
@liquid-8@ErikBjare — the remaining acceptance step is to run DEMO_BROADCAST=1 ./demo_sepolia.sh from skills/uniswap-trading/ at the PR revision, using a dedicated funded Sepolia wallet, then post the public Sepolia transaction hash here. The script spends 0.001 testnet ETH plus gas and prints the receipt and before/after balances. Keep the key private; no key belongs in this issue. Record the source revision and approximate setup/review time alongside the hash.
Agent wrapper and offline safety tests available for review.
v2 demo verified against actual Sepolia contract state on a local fork.
Public Sepolia transaction has a successful mined receipt and matching token transfer.
Reviewer/setup effort recorded.
A fork transaction or a merged PR alone does not complete the last two items. After a public hash is supplied, Bob verifies it independently against Sepolia.
History: converted from #478; original branch feat/agent-skill-skeleton retained. The successor branch is feat/d3-sepolia-v2-demo.
changed the title [-]Uniswap-trading AI-agent skill skeleton is still a stale draft[/-][+]Complete D3 agent-skill demo with a public Sepolia receipt[/+]on Nov 27, 2026
@TimeToBuildBob Quick check: to expand v2 demo to v3 and v4, we need the following.
v3: Update the contract addresses and ABIs for SwapRouter and Quoter to the latest versions (SwapRouterV2 and QuoterV2) because there are no other deployments on Sepolia. Replace hardcoded addresses with dictionary values, as v2 and v4 do.
v4: Allow skipping non-critical contract loading in constructors if they are missing on Sepolia, or update contract dictionaries if everything is deployed.
Good list — both points are real. Two corrections and some gaps, checked against master:
v3
Right that the addresses need to move into per-network dictionaries. Three things your list misses:
The ABI changes too, not just the address.uniswap/assets/uniswap-v3/router.abi and quoter.abi are the original SwapRouter/Quoter. SwapRouter02 drops deadline from exactInputSingle; QuoterV2 takes a struct and returns (amountOut, sqrtPriceX96After, initializedTicksCrossed, gasEstimate) instead of a bare amount. So the call sites in get_price_input/_get_token_token_input_price, make_trade, and the approval path need versioning, not a lookup swap.
More than router+quoter are hardcoded.uniswap/uniswap.py also pins factory (0x1F98…), nonFungiblePositionManager (0xC364…) and multicall2 (0x5BA1…, arbitrum 0x5007…); asyncuniswap.py mirrors all of it. Partial dictionaries leave v3 failing at approval/position/batched-read time.
A design fork to name: do we migrate all networks to Router02/QuoterV2, or keep the legacy ABI for mainnet and select by chain? The former touches mainnet behaviour; the latter needs ABI selection keyed by network. Worth deciding before writing the dictionaries.
Also, the skill's check_version_supported() refuses v3 on every testnet up front (uniswap_agent.py:91). That guard has to become capability-based in the same change or the new support is unreachable from the skill.
v4
Your "skip non-critical loading" framing doesn't match what's actually failing:
_netid_to_name maps 11155111 → sepolia, but none of the eight _*_contract_addresses_v4 dicts contain a sepolia key. Uniswap4.__init__ checks the quoter dict and raises ValueError("Netid 11155111 is not supported yet.") before any contract is loaded. It's not one missing helper — v4 has no Sepolia deployment recorded at all.
The existing try/except NameNotFound blocks can't help: _load_contract loads a local ABI file and never raises NameNotFound; a missing address raises KeyError/ValueError at the dictionary lookup before those blocks. If skipping is wanted, it has to be a per-contract optional lookup (dict.get) with a capability flag, not exception-catching around load.
The agent wrapper has no testnet guard for v4 (check_version_supported only covers v3), so on Sepolia it dies with that raw ValueError. If v4 stays unsupported, it should get the same deterministic SafetyError refusal as v3.
Scope
I wouldn't block D3 acceptance on this. #497's remaining item is a public Sepolia v2 tx; v3/v4 testnet enablement is separate library work and probably deserves its own issue/PR rather than growing the skill change. Happy to open that issue with this checklist if useful.
Activity
[-]Uniswap-trading AI-agent skill skeleton is still a stale draft[/-][+]Complete D3 agent-skill demo with a public Sepolia receipt[/+]liquid-8 commentedon Nov 28, 2026
@TimeToBuildBob Quick check: to expand v2 demo to v3 and v4, we need the following.
v3: Update the contract addresses and ABIs for SwapRouter and Quoter to the latest versions (SwapRouterV2 and QuoterV2) because there are no other deployments on Sepolia. Replace hardcoded addresses with dictionary values, as v2 and v4 do.
v4: Allow skipping non-critical contract loading in constructors if they are missing on Sepolia, or update contract dictionaries if everything is deployed.
Am I missing something?
TimeToBuildBob commentedon Nov 28, 2026
Good list — both points are real. Two corrections and some gaps, checked against
master:v3
Right that the addresses need to move into per-network dictionaries. Three things your list misses:
uniswap/assets/uniswap-v3/router.abiandquoter.abiare the original SwapRouter/Quoter. SwapRouter02 dropsdeadlinefromexactInputSingle; QuoterV2 takes a struct and returns(amountOut, sqrtPriceX96After, initializedTicksCrossed, gasEstimate)instead of a bare amount. So the call sites inget_price_input/_get_token_token_input_price,make_trade, and the approval path need versioning, not a lookup swap.uniswap/uniswap.pyalso pins factory (0x1F98…),nonFungiblePositionManager(0xC364…) and multicall2 (0x5BA1…, arbitrum0x5007…);asyncuniswap.pymirrors all of it. Partial dictionaries leave v3 failing at approval/position/batched-read time.Also, the skill's
check_version_supported()refuses v3 on every testnet up front (uniswap_agent.py:91). That guard has to become capability-based in the same change or the new support is unreachable from the skill.v4
Your "skip non-critical loading" framing doesn't match what's actually failing:
_netid_to_namemaps 11155111 →sepolia, but none of the eight_*_contract_addresses_v4dicts contain asepoliakey.Uniswap4.__init__checks the quoter dict and raisesValueError("Netid 11155111 is not supported yet.")before any contract is loaded. It's not one missing helper — v4 has no Sepolia deployment recorded at all.try/except NameNotFoundblocks can't help:_load_contractloads a local ABI file and never raisesNameNotFound; a missing address raisesKeyError/ValueErrorat the dictionary lookup before those blocks. If skipping is wanted, it has to be a per-contract optional lookup (dict.get) with a capability flag, not exception-catching around load.check_version_supportedonly covers v3), so on Sepolia it dies with that rawValueError. If v4 stays unsupported, it should get the same deterministicSafetyErrorrefusal as v3.Scope
I wouldn't block D3 acceptance on this. #497's remaining item is a public Sepolia v2 tx; v3/v4 testnet enablement is separate library work and probably deserves its own issue/PR rather than growing the skill change. Happy to open that issue with this checklist if useful.