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
.env
file 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 snapshot
First, make sure your environment variables are loaded:
source .env
Then 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