Documentation Index
Fetch the complete documentation index at: https://docs.abs.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Smart contracts must be compiled to Zksync VM-compatible bytecode using the zksolc compiler to prepare them for deployment on Abstract.
Configure foundry.toml
Update your foundry.toml file to include the following options:[profile.default]
src = 'src'
libs = ['lib']
fallback_oz = true
is_system = false # Note: NonceHolder and the ContractDeployer system contracts can only be called with a special is_system flag as true
mode = "3"
[etherscan]
abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"}
abstractMainnet = { chain = "2741", url = "https://api.abscan.org/api", key = ""}
Compile contracts
Compile your contracts using the following command:This will generate the zkout directory containing the compiled smart contracts.