A smart contract protocol for managing collectibles on Abstract's testnet, built with Foundry.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.
- Copy the example environment file:
cp .env.example .env- Update the
.envfile with your configuration:
# RPC URLs
ABSTRACT_TESTNET_RPC_URL=https://api.testnet.abs.xyz
ABSTRACT_VERIFIER_URL=https://api-sepolia.abscan.org/api
# Deployment
PRIVATE_KEY=0xyour_private_key_here$ forge build$ forge test$ forge fmt$ forge snapshotFirst, make sure your environment variables are loaded:
source .envThen run the deployment script:
forge script script/Counter.s.sol:CounterScript --rpc-url $ABSTRACT_TESTNET_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --verifier blockscout --verifier-url $ABSTRACT_VERIFIER_URL -vvvv --zksync$ cast <subcommand>$ forge --help
$ anvil --help
$ cast --help