/abstract-skills:deploying-contracts-on-abstractfrom abstract-skills
Deploys and verifies smart contracts on Abstract (Ethereum L2) using Foundry with zkSync compiler. Covers zksolc compilation, Abscan verification, testnet faucets, and local testing.
Ships in abstract-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Default: Foundry. Abstract uses the ZK Stack VM — contracts must be compiled with zksolc, not standard solc. For Hardhat, see references/hardhat.md. For EVM differences, see references/evm-differences.md.
curl -L https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/install-foundry-zksync | bash
foundryup-zksync
Warning: This overwrites standard Foundry. Switch back with
foundryupif needed.
forge init my-abstract-project && cd my-abstract-project
foundry.toml[profile.default]
src = 'src'
libs = ['lib']
fallback_oz = true
is_system = false
mode = "3"
[etherscan]
abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "${ABSCAN_API_KEY}" }
abstractMainnet = { chain = "2741", url = "https://api.abscan.org/api", key = "${ABSCAN_API_KEY}" }
forge build --zksync
Outputs to zkout/ (not out/).
cast wallet import myKeystore --interactive
forge create src/Counter.sol:Counter \
--account myKeystore \
--rpc-url https://api.testnet.abs.xyz \
--chain 11124 \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key ${ABSCAN_API_KEY}
forge create src/Counter.sol:Counter \
--account myKeystore \
--rpc-url https://api.mainnet.abs.xyz \
--chain 2741 \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api.abscan.org/api \
--etherscan-api-key ${ABSCAN_API_KEY}
Append --constructor-args <arg1> <arg2> in the order defined in the constructor.
forge verify-contract <address> src/Counter.sol:Counter \
--chain 11124 \
--etherscan-api-key ${ABSCAN_API_KEY} \
--zksync
Use --chain 2741 for mainnet. Chain names (abstract-testnet, abstract) also work.
forge test --zksync
Fork testing against live networks:
forge test --zksync --fork-url https://api.testnet.abs.xyz
Local node:
anvil-zksync
forge test --zksync --fork-url http://localhost:8011
Cheatcode limitation: On Abstract's ZK VM, cheatcodes (
vm.prank,vm.roll, etc.) only work at the root test level — not from within contracts being tested.
| Scenario | Use |
|---|---|
| Solidity-first, fast iteration | Foundry (default) |
| TypeScript preference | Hardhat (references/hardhat.md) |
| Existing Hardhat project | Hardhat (references/hardhat.md) |
| Existing Foundry project | Foundry |
| Need JS plugin ecosystem | Hardhat (references/hardhat.md) |
forge commands need --zksync — without it, you get standard EVM bytecode that won't run on Abstractfoundryup-zksync overwrites standard Foundry — use foundryup to switch backexport ABSCAN_API_KEY=<key> or .envzkout/ not out/ — compiled artifacts go to a different directorycast wallet import or environment variablesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/abstract-global-walletIntegrate Abstract Global Wallet (AGW) into React applications — email/social/passkey login, smart contract wallet, session keys, gas sponsorship, and wallet provider integrations for the Abstract Ethereum L2. This skill should be used when working with AGW, AbstractWalletProvider, useLoginWithAbstract, useAbstractClient, useWriteContractSponsored, agw-react, agw-client, create-abstract-app, session keys on Abstract, or gas-sponsored transactions on Abstract./connecting-to-abstractAbstract network configuration — chain IDs, RPC endpoints, WebSocket URLs, block explorers, and wallet setup for the Abstract Ethereum L2. This skill should be used when configuring clients, wallets, or dev environments for Abstract, including questions about Abstract RPC URLs, chain IDs (2741/11124), testnet config, Abscan explorer, connecting to the Abstract network, or importing abstract/abstractTestnet from viem/chains./erc8004-on-abstractRegister AI agents, track reputation, and discover agents on Abstract using ERC-8004 — the onchain identity and reputation protocol for trustless agent economies. This skill should be used when registering an agent onchain, querying agent reputation, giving feedback to an agent, working with IdentityRegistry or ReputationRegistry on Abstract, ERC-8004, agent discovery, or onchain agent identity.Generated from the plugin's indexed repository (abstract-foundation/abstract-skills) — no native marketplace selected
npx claudepluginhub p/abstract-foundation-abstract-skillsOther plugins' skills for the same job