tempo-stable-uniswap-swaps
Tempo stablecoin and token swap operations for agents. Use when working with pathUSD/USDC.e balances, swapping between USDC.e and pathUSD, or executing any-token swaps via Uniswap on Tempo with quote, Permit2 approvals, simulation, and broadcast.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aviclaw/tempo-stable-uniswap-swapsTempo Stable + Uniswap Swaps
Use this skill for low-friction Tempo execution with Foundry (cast) and Uniswap Trade API.
One-File Mode (Clawhub-Friendly)
Use this SKILL.md alone. No other files are required.
If scripts are unavailable, run the command playbooks in this file directly.
Network + Tokens
- Chain: Tempo mainnet (
chainId=4217) - RPC:
https://rpc.presto.tempo.xyz pathUSD:0x20C0000000000000000000000000000000000000USDC.e:0x20c000000000000000000000b9537d11c60e8b50TDOGE:0x20C000000000000000000000d5d5815Ae71124d1- Permit2:
0x000000000022D473030F116dDEE9F6B43aC78BA3
Foundry Prereq Check (Required)
Check:
command -v cast && cast --version
Install if missing:
curl -L https://foundry.paradigm.xyz | bash
foundryup
pathUSD vs USDC.e
pathUSDis Tempo-native infrastructure stablecoin used in routing/fees.USDC.eis bridged stablecoin liquidity.- Do not attempt exact full-balance
pathUSDtransfers; leave fee headroom.
Required Tools + Env
- Tools:
cast,curl,jq - Env:
PRIVATE_KEYUNISWAP_API_KEY- Optional:
RPC_URL(default above)
Quick Balance Checks
WALLET=$(cast wallet address --private-key "$PRIVATE_KEY")
cast call 0x20C0000000000000000000000000000000000000 \
"balanceOf(address)(uint256)" "$WALLET" --rpc-url "${RPC_URL:-https://rpc.presto.tempo.xyz}"
cast call 0x20c000000000000000000000b9537d11c60e8b50 \
"balanceOf(address)(uint256)" "$WALLET" --rpc-url "${RPC_URL:-https://rpc.presto.tempo.xyz}"
Transfer pathUSD
cast send 0x20C0000000000000000000000000000000000000 \
"transfer(address,uint256)" <TO> <AMOUNT_RAW> \
--private-key "$PRIVATE_KEY" --rpc-url "${RPC_URL:-https://rpc.presto.tempo.xyz}" --gas-limit 100000
Swap Any Token on Tempo via Uniswap (Exact Input)
- Quote:
curl -sS https://trade-api.gateway.uniswap.org/v1/quote \
-H 'content-type: application/json' \
-H "x-api-key: $UNISWAP_API_KEY" \
--data '{
"type":"EXACT_INPUT",
"amount":"<AMOUNT_IN_RAW>",
"tokenInChainId":4217,
"tokenOutChainId":4217,
"tokenIn":"<TOKEN_IN>",
"tokenOut":"<TOKEN_OUT>",
"swapper":"<WALLET>",
"slippageTolerance":2.5
}'
- Ensure approvals:
TOKEN_IN -> Permit2:
cast send <TOKEN_IN> "approve(address,uint256)" \
0x000000000022D473030F116dDEE9F6B43aC78BA3 \
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff \
--private-key "$PRIVATE_KEY" --rpc-url "${RPC_URL:-https://rpc.presto.tempo.xyz}" --gas-limit 900000
Permit2 -> spender (spender from quote permitData.values.spender):
EXP=$(( $(date +%s) + 31536000 ))
cast send 0x000000000022D473030F116dDEE9F6B43aC78BA3 \
"approve(address,address,uint160,uint48)" \
<TOKEN_IN> <SPENDER> 1461501637330902918203684832716283019655932542975 "$EXP" \
--private-key "$PRIVATE_KEY" --rpc-url "${RPC_URL:-https://rpc.presto.tempo.xyz}" --gas-limit 900000
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aviclaw-tempo-stable-uniswap-swaps": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Zeroex Swap
Skill by aviclaw
x-research
General-purpose X/Twitter research agent. Searches X for real-time perspectives, dev discussions, product feedback, cultural takes, breaking news, and expert opinions. Works like a web research agent but uses X as the source. Use when: (1) user says "x research", "search x for", "search twitter for", "what are people saying about", "what's twitter saying", "check x for", "x search", "/x-research", (2) user is working on something where recent X discourse would provide useful context (new library releases, API changes, product launches, cultural events, industry drama), (3) user wants to find what devs/experts/community thinks about a topic. NOT for: posting tweets, account management, or historical archive searches beyond 7 days.
verify-before-done
Prevent premature completion claims, repeated same-pattern retries, and weak handoffs. Use this skill to improve verification, strategy switching, and blocked-task reporting without changing personality or tone.
Agent Security Auditor
Skill by aviclaw
solidity-guardian
Smart contract security analysis skill. Detect vulnerabilities, suggest fixes, generate audit reports. Supports Hardhat/Foundry projects. Uses pattern matching + best practices from Trail of Bits, OpenZeppelin, and Consensys.